From ee677786d535eb1c45ab72a55f5a1f9a76109f7d Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 3 Oct 2022 06:02:31 +0000 Subject: [PATCH] feat: added support for Private Trust to Certificate Manager API docs: See https://cloud.google.com/certificate-manager/docs/deploy-google-managed-cas PiperOrigin-RevId: 478406005 Source-Link: https://github.com/googleapis/googleapis/commit/fe486dded299ab28f647f22add01474b906fc5c4 Source-Link: https://github.com/googleapis/googleapis-gen/commit/528c0bec65c435e700831e22065bd01229a21382 Copy-Tag: eyJwIjoiamF2YS1jZXJ0aWZpY2F0ZS1tYW5hZ2VyLy5Pd2xCb3QueWFtbCIsImgiOiI1MjhjMGJlYzY1YzQzNWU3MDA4MzFlMjIwNjViZDAxMjI5YTIxMzgyIn0= --- .../v1/CertificateManagerGrpc.java | 2783 ------- .../v1/CertificateManagerProto.java | 965 --- ...teCertificateMapEntryRequestOrBuilder.java | 56 - .../DeleteCertificateMapRequestOrBuilder.java | 56 - .../v1/DeleteCertificateRequestOrBuilder.java | 56 - ...eleteDnsAuthorizationRequestOrBuilder.java | 56 - ...etCertificateMapEntryRequestOrBuilder.java | 56 - .../v1/GetCertificateMapRequestOrBuilder.java | 56 - .../v1/GetCertificateRequestOrBuilder.java | 56 - .../GetDnsAuthorizationRequestOrBuilder.java | 56 - .../v1/CertificateManagerClient.java | 763 ++ .../v1/CertificateManagerSettings.java | 89 + .../certificatemanager/v1/gapic_metadata.json | 12 + .../certificatemanager/v1/package-info.java | 0 .../v1/stub/CertificateManagerStub.java | 52 + .../stub/CertificateManagerStubSettings.java | 319 + ...GrpcCertificateManagerCallableFactory.java | 0 .../v1/stub/GrpcCertificateManagerStub.java | 208 + ...JsonCertificateManagerCallableFactory.java | 0 .../stub/HttpJsonCertificateManagerStub.java | 302 + .../CertificateManagerClientHttpJsonTest.java | 464 ++ .../v1/CertificateManagerClientTest.java | 438 ++ .../v1/MockCertificateManager.java | 0 .../v1/MockCertificateManagerImpl.java | 86 + .../certificatemanager/v1/MockLocations.java | 0 .../v1/MockLocationsImpl.java | 0 .../v1/CertificateManagerGrpc.java | 2379 ++++++ .../certificatemanager/v1/Certificate.java | 6623 +++++++---------- .../v1/CertificateIssuanceConfig.java | 3746 ++++++++++ .../v1/CertificateIssuanceConfigName.java | 240 + .../CertificateIssuanceConfigOrBuilder.java | 251 + .../v1/CertificateIssuanceConfigProto.java | 216 + .../v1/CertificateManagerProto.java | 889 +++ .../certificatemanager/v1/CertificateMap.java | 3143 +++----- .../v1/CertificateMapEntry.java | 1488 ++-- .../v1/CertificateMapEntryName.java | 0 .../v1/CertificateMapEntryOrBuilder.java | 154 +- .../v1/CertificateMapName.java | 0 .../v1/CertificateMapOrBuilder.java | 146 +- .../v1/CertificateName.java | 0 .../v1/CertificateOrBuilder.java | 222 +- ...reateCertificateIssuanceConfigRequest.java | 976 +++ ...ificateIssuanceConfigRequestOrBuilder.java | 78 + .../v1/CreateCertificateMapEntryRequest.java | 700 +- ...teCertificateMapEntryRequestOrBuilder.java | 67 +- .../v1/CreateCertificateMapRequest.java | 683 +- .../CreateCertificateMapRequestOrBuilder.java | 64 +- .../v1/CreateCertificateRequest.java | 659 +- .../v1/CreateCertificateRequestOrBuilder.java | 64 +- .../v1/CreateDnsAuthorizationRequest.java | 714 +- ...reateDnsAuthorizationRequestOrBuilder.java | 72 +- ...eleteCertificateIssuanceConfigRequest.java | 581 ++ ...ificateIssuanceConfigRequestOrBuilder.java | 31 + .../v1/DeleteCertificateMapEntryRequest.java | 487 +- ...teCertificateMapEntryRequestOrBuilder.java | 31 + .../v1/DeleteCertificateMapRequest.java | 446 +- .../DeleteCertificateMapRequestOrBuilder.java | 31 + .../v1/DeleteCertificateRequest.java | 434 +- .../v1/DeleteCertificateRequestOrBuilder.java | 31 + .../v1/DeleteDnsAuthorizationRequest.java | 446 +- ...eleteDnsAuthorizationRequestOrBuilder.java | 31 + .../v1/DnsAuthorization.java | 2025 ++--- .../v1/DnsAuthorizationName.java | 0 .../v1/DnsAuthorizationOrBuilder.java | 164 +- .../GetCertificateIssuanceConfigRequest.java | 581 ++ ...ificateIssuanceConfigRequestOrBuilder.java | 31 + .../v1/GetCertificateMapEntryRequest.java | 446 +- ...etCertificateMapEntryRequestOrBuilder.java | 31 + .../v1/GetCertificateMapRequest.java | 434 +- .../v1/GetCertificateMapRequestOrBuilder.java | 31 + .../v1/GetCertificateRequest.java | 420 +- .../v1/GetCertificateRequestOrBuilder.java | 31 + .../v1/GetDnsAuthorizationRequest.java | 470 +- .../GetDnsAuthorizationRequestOrBuilder.java | 31 + ...ListCertificateIssuanceConfigsRequest.java | 1191 +++ ...ficateIssuanceConfigsRequestOrBuilder.java | 111 + ...istCertificateIssuanceConfigsResponse.java | 1269 ++++ ...icateIssuanceConfigsResponseOrBuilder.java | 118 + .../v1/ListCertificateMapEntriesRequest.java | 763 +- ...CertificateMapEntriesRequestOrBuilder.java | 73 +- .../v1/ListCertificateMapEntriesResponse.java | 839 +-- ...ertificateMapEntriesResponseOrBuilder.java | 83 +- .../v1/ListCertificateMapsRequest.java | 746 +- .../ListCertificateMapsRequestOrBuilder.java | 73 +- .../v1/ListCertificateMapsResponse.java | 747 +- .../ListCertificateMapsResponseOrBuilder.java | 60 +- .../v1/ListCertificatesRequest.java | 735 +- .../v1/ListCertificatesRequestOrBuilder.java | 73 +- .../v1/ListCertificatesResponse.java | 672 +- .../v1/ListCertificatesResponseOrBuilder.java | 63 +- .../v1/ListDnsAuthorizationsRequest.java | 750 +- ...ListDnsAuthorizationsRequestOrBuilder.java | 73 +- .../v1/ListDnsAuthorizationsResponse.java | 790 +- ...istDnsAuthorizationsResponseOrBuilder.java | 74 +- .../certificatemanager/v1/LocationName.java | 0 .../v1/OperationMetadata.java | 862 +-- .../v1/OperationMetadataOrBuilder.java | 78 +- .../certificatemanager/v1/ServingState.java | 86 +- .../v1/UpdateCertificateMapEntryRequest.java | 691 +- ...teCertificateMapEntryRequestOrBuilder.java | 70 +- .../v1/UpdateCertificateMapRequest.java | 674 +- .../UpdateCertificateMapRequestOrBuilder.java | 67 +- .../v1/UpdateCertificateRequest.java | 650 +- .../v1/UpdateCertificateRequestOrBuilder.java | 67 +- .../v1/UpdateDnsAuthorizationRequest.java | 677 +- ...pdateDnsAuthorizationRequestOrBuilder.java | 67 +- .../v1/certificate_issuance_config.proto | 200 + .../v1/certificate_manager.proto | 331 +- .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateCertificate.java | 0 .../AsyncCreateCertificateLRO.java | 0 .../SyncCreateCertificate.java | 0 ...tificateLocationnameCertificateString.java | 0 ...ateCertificateStringCertificateString.java | 0 .../AsyncCreateCertificateIssuanceConfig.java | 53 + ...yncCreateCertificateIssuanceConfigLRO.java | 55 + .../SyncCreateCertificateIssuanceConfig.java | 49 + ...onnameCertificateissuanceconfigString.java | 51 + ...StringCertificateissuanceconfigString.java | 50 + .../AsyncCreateCertificateMap.java | 0 .../AsyncCreateCertificateMapLRO.java | 0 .../SyncCreateCertificateMap.java | 0 ...teMapLocationnameCertificatemapString.java | 0 ...tificateMapStringCertificatemapString.java | 0 .../AsyncCreateCertificateMapEntry.java | 0 .../AsyncCreateCertificateMapEntryLRO.java | 0 .../SyncCreateCertificateMapEntry.java | 0 ...icatemapnameCertificatemapentryString.java | 0 ...pEntryStringCertificatemapentryString.java | 0 .../AsyncCreateDnsAuthorization.java | 0 .../AsyncCreateDnsAuthorizationLRO.java | 0 .../SyncCreateDnsAuthorization.java | 0 ...ionLocationnameDnsauthorizationString.java | 0 ...orizationStringDnsauthorizationString.java | 0 .../AsyncDeleteCertificate.java | 0 .../AsyncDeleteCertificateLRO.java | 0 .../SyncDeleteCertificate.java | 0 .../SyncDeleteCertificateCertificatename.java | 0 .../SyncDeleteCertificateString.java | 0 .../AsyncDeleteCertificateIssuanceConfig.java | 53 + ...yncDeleteCertificateIssuanceConfigLRO.java | 56 + .../SyncDeleteCertificateIssuanceConfig.java | 49 + ...ceConfigCertificateissuanceconfigname.java | 45 + ...DeleteCertificateIssuanceConfigString.java | 45 + .../AsyncDeleteCertificateMap.java | 0 .../AsyncDeleteCertificateMapLRO.java | 0 .../SyncDeleteCertificateMap.java | 0 ...eleteCertificateMapCertificatemapname.java | 0 .../SyncDeleteCertificateMapString.java | 0 .../AsyncDeleteCertificateMapEntry.java | 0 .../AsyncDeleteCertificateMapEntryLRO.java | 0 .../SyncDeleteCertificateMapEntry.java | 0 ...ficateMapEntryCertificatemapentryname.java | 0 .../SyncDeleteCertificateMapEntryString.java | 0 .../AsyncDeleteDnsAuthorization.java | 0 .../AsyncDeleteDnsAuthorizationLRO.java | 0 .../SyncDeleteDnsAuthorization.java | 0 ...eDnsAuthorizationDnsauthorizationname.java | 0 .../SyncDeleteDnsAuthorizationString.java | 0 .../getcertificate/AsyncGetCertificate.java | 0 .../getcertificate/SyncGetCertificate.java | 0 .../SyncGetCertificateCertificatename.java | 0 .../SyncGetCertificateString.java | 0 .../AsyncGetCertificateIssuanceConfig.java | 53 + .../SyncGetCertificateIssuanceConfig.java | 50 + ...ceConfigCertificateissuanceconfigname.java | 46 + ...yncGetCertificateIssuanceConfigString.java | 46 + .../AsyncGetCertificateMap.java | 0 .../SyncGetCertificateMap.java | 0 ...ncGetCertificateMapCertificatemapname.java | 0 .../SyncGetCertificateMapString.java | 0 .../AsyncGetCertificateMapEntry.java | 0 .../SyncGetCertificateMapEntry.java | 0 ...ficateMapEntryCertificatemapentryname.java | 0 .../SyncGetCertificateMapEntryString.java | 0 .../AsyncGetDnsAuthorization.java | 0 .../SyncGetDnsAuthorization.java | 0 ...tDnsAuthorizationDnsauthorizationname.java | 0 .../SyncGetDnsAuthorizationString.java | 0 .../getlocation/AsyncGetLocation.java | 0 .../getlocation/SyncGetLocation.java | 0 .../AsyncListCertificateIssuanceConfigs.java | 58 + ...ncListCertificateIssuanceConfigsPaged.java | 64 + .../SyncListCertificateIssuanceConfigs.java | 53 + ...ertificateIssuanceConfigsLocationname.java | 45 + ...cListCertificateIssuanceConfigsString.java | 45 + .../AsyncListCertificateMapEntries.java | 0 .../AsyncListCertificateMapEntriesPaged.java | 0 .../SyncListCertificateMapEntries.java | 0 ...rtificateMapEntriesCertificatemapname.java | 0 .../SyncListCertificateMapEntriesString.java | 0 .../AsyncListCertificateMaps.java | 0 .../AsyncListCertificateMapsPaged.java | 0 .../SyncListCertificateMaps.java | 0 .../SyncListCertificateMapsLocationname.java | 0 .../SyncListCertificateMapsString.java | 0 .../AsyncListCertificates.java | 0 .../AsyncListCertificatesPaged.java | 0 .../SyncListCertificates.java | 0 .../SyncListCertificatesLocationname.java | 0 .../SyncListCertificatesString.java | 0 .../AsyncListDnsAuthorizations.java | 0 .../AsyncListDnsAuthorizationsPaged.java | 0 .../SyncListDnsAuthorizations.java | 0 ...SyncListDnsAuthorizationsLocationname.java | 0 .../SyncListDnsAuthorizationsString.java | 0 .../listlocations/AsyncListLocations.java | 0 .../AsyncListLocationsPaged.java | 0 .../listlocations/SyncListLocations.java | 0 .../AsyncUpdateCertificate.java | 0 .../AsyncUpdateCertificateLRO.java | 0 .../SyncUpdateCertificate.java | 0 ...UpdateCertificateCertificateFieldmask.java | 0 .../AsyncUpdateCertificateMap.java | 0 .../AsyncUpdateCertificateMapLRO.java | 0 .../SyncUpdateCertificateMap.java | 0 ...CertificateMapCertificatemapFieldmask.java | 0 .../AsyncUpdateCertificateMapEntry.java | 0 .../AsyncUpdateCertificateMapEntryLRO.java | 0 .../SyncUpdateCertificateMapEntry.java | 0 ...eMapEntryCertificatemapentryFieldmask.java | 0 .../AsyncUpdateDnsAuthorization.java | 0 .../AsyncUpdateDnsAuthorizationLRO.java | 0 .../SyncUpdateDnsAuthorization.java | 0 ...uthorizationDnsauthorizationFieldmask.java | 0 .../getcertificate/SyncGetCertificate.java | 0 .../getcertificate/SyncGetCertificate.java | 0 229 files changed, 28726 insertions(+), 23810 deletions(-) delete mode 100644 java-certificate-manager/grpc-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerGrpc.java delete mode 100644 java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerProto.java delete mode 100644 java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapEntryRequestOrBuilder.java delete mode 100644 java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapRequestOrBuilder.java delete mode 100644 java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateRequestOrBuilder.java delete mode 100644 java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteDnsAuthorizationRequestOrBuilder.java delete mode 100644 java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapEntryRequestOrBuilder.java delete mode 100644 java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapRequestOrBuilder.java delete mode 100644 java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateRequestOrBuilder.java delete mode 100644 java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetDnsAuthorizationRequestOrBuilder.java rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerClient.java (82%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerSettings.java (86%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/gapic_metadata.json (82%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/package-info.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStub.java (83%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStubSettings.java (84%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/GrpcCertificateManagerCallableFactory.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/GrpcCertificateManagerStub.java (83%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/HttpJsonCertificateManagerCallableFactory.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/HttpJsonCertificateManagerStub.java (83%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/CertificateManagerClientHttpJsonTest.java (82%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/CertificateManagerClientTest.java (81%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockCertificateManager.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockCertificateManagerImpl.java (83%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockLocations.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockLocationsImpl.java (100%) create mode 100644 owl-bot-staging/java-certificate-manager/v1/grpc-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerGrpc.java rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/Certificate.java (57%) create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfig.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigName.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigOrBuilder.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigProto.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerProto.java rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMap.java (59%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntry.java (67%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntryName.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntryOrBuilder.java (78%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapName.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapOrBuilder.java (63%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateName.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateOrBuilder.java (69%) create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateIssuanceConfigRequest.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateIssuanceConfigRequestOrBuilder.java rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapEntryRequest.java (58%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapEntryRequestOrBuilder.java (54%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapRequest.java (59%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapRequestOrBuilder.java (54%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateRequest.java (59%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateRequestOrBuilder.java (53%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateDnsAuthorizationRequest.java (57%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateDnsAuthorizationRequestOrBuilder.java (50%) create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateIssuanceConfigRequest.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateIssuanceConfigRequestOrBuilder.java rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapEntryRequest.java (51%) create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapEntryRequestOrBuilder.java rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapRequest.java (56%) create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapRequestOrBuilder.java rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateRequest.java (57%) create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateRequestOrBuilder.java rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteDnsAuthorizationRequest.java (56%) create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteDnsAuthorizationRequestOrBuilder.java rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorization.java (61%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorizationName.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorizationOrBuilder.java (60%) create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateIssuanceConfigRequest.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateIssuanceConfigRequestOrBuilder.java rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapEntryRequest.java (56%) create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapEntryRequestOrBuilder.java rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapRequest.java (57%) create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapRequestOrBuilder.java rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateRequest.java (58%) create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateRequestOrBuilder.java rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetDnsAuthorizationRequest.java (54%) create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetDnsAuthorizationRequestOrBuilder.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsRequest.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsRequestOrBuilder.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsResponse.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsResponseOrBuilder.java rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesRequest.java (65%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesRequestOrBuilder.java (67%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesResponse.java (62%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesResponseOrBuilder.java (63%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsRequest.java (65%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsRequestOrBuilder.java (63%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsResponse.java (68%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsResponseOrBuilder.java (76%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesRequest.java (65%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesRequestOrBuilder.java (63%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesResponse.java (71%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesResponseOrBuilder.java (75%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsRequest.java (64%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsRequestOrBuilder.java (63%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsResponse.java (67%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsResponseOrBuilder.java (72%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/LocationName.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/OperationMetadata.java (69%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/OperationMetadataOrBuilder.java (73%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ServingState.java (66%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapEntryRequest.java (57%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapEntryRequestOrBuilder.java (57%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapRequest.java (58%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapRequestOrBuilder.java (57%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateRequest.java (59%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateRequestOrBuilder.java (57%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateDnsAuthorizationRequest.java (57%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateDnsAuthorizationRequestOrBuilder.java (58%) create mode 100644 owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/proto/google/cloud/certificatemanager/v1/certificate_issuance_config.proto rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/proto-google-cloud-certificate-manager-v1/src/main/proto/google/cloud/certificatemanager/v1/certificate_manager.proto (77%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/create/SyncCreateSetEndpoint.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/AsyncCreateCertificate.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/AsyncCreateCertificateLRO.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/SyncCreateCertificate.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/SyncCreateCertificateLocationnameCertificateString.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/SyncCreateCertificateStringCertificateString.java (100%) create mode 100644 owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/AsyncCreateCertificateIssuanceConfig.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/AsyncCreateCertificateIssuanceConfigLRO.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/SyncCreateCertificateIssuanceConfig.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/SyncCreateCertificateIssuanceConfigLocationnameCertificateissuanceconfigString.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/SyncCreateCertificateIssuanceConfigStringCertificateissuanceconfigString.java rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/AsyncCreateCertificateMap.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/AsyncCreateCertificateMapLRO.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/SyncCreateCertificateMap.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/SyncCreateCertificateMapLocationnameCertificatemapString.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/SyncCreateCertificateMapStringCertificatemapString.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/AsyncCreateCertificateMapEntry.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/AsyncCreateCertificateMapEntryLRO.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/SyncCreateCertificateMapEntry.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/SyncCreateCertificateMapEntryCertificatemapnameCertificatemapentryString.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/SyncCreateCertificateMapEntryStringCertificatemapentryString.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/AsyncCreateDnsAuthorization.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/AsyncCreateDnsAuthorizationLRO.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/SyncCreateDnsAuthorization.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/SyncCreateDnsAuthorizationLocationnameDnsauthorizationString.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/SyncCreateDnsAuthorizationStringDnsauthorizationString.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/AsyncDeleteCertificate.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/AsyncDeleteCertificateLRO.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/SyncDeleteCertificate.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/SyncDeleteCertificateCertificatename.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/SyncDeleteCertificateString.java (100%) create mode 100644 owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/AsyncDeleteCertificateIssuanceConfig.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/AsyncDeleteCertificateIssuanceConfigLRO.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/SyncDeleteCertificateIssuanceConfig.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/SyncDeleteCertificateIssuanceConfigCertificateissuanceconfigname.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/SyncDeleteCertificateIssuanceConfigString.java rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/AsyncDeleteCertificateMap.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/AsyncDeleteCertificateMapLRO.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/SyncDeleteCertificateMap.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/SyncDeleteCertificateMapCertificatemapname.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/SyncDeleteCertificateMapString.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/AsyncDeleteCertificateMapEntry.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/AsyncDeleteCertificateMapEntryLRO.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/SyncDeleteCertificateMapEntry.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/SyncDeleteCertificateMapEntryCertificatemapentryname.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/SyncDeleteCertificateMapEntryString.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/AsyncDeleteDnsAuthorization.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/AsyncDeleteDnsAuthorizationLRO.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/SyncDeleteDnsAuthorization.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/SyncDeleteDnsAuthorizationDnsauthorizationname.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/SyncDeleteDnsAuthorizationString.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificate/AsyncGetCertificate.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificate/SyncGetCertificate.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificate/SyncGetCertificateCertificatename.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificate/SyncGetCertificateString.java (100%) create mode 100644 owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/AsyncGetCertificateIssuanceConfig.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/SyncGetCertificateIssuanceConfig.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/SyncGetCertificateIssuanceConfigCertificateissuanceconfigname.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/SyncGetCertificateIssuanceConfigString.java rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemap/AsyncGetCertificateMap.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemap/SyncGetCertificateMap.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemap/SyncGetCertificateMapCertificatemapname.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemap/SyncGetCertificateMapString.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemapentry/AsyncGetCertificateMapEntry.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemapentry/SyncGetCertificateMapEntry.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemapentry/SyncGetCertificateMapEntryCertificatemapentryname.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemapentry/SyncGetCertificateMapEntryString.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getdnsauthorization/AsyncGetDnsAuthorization.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getdnsauthorization/SyncGetDnsAuthorization.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getdnsauthorization/SyncGetDnsAuthorizationDnsauthorizationname.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getdnsauthorization/SyncGetDnsAuthorizationString.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getlocation/AsyncGetLocation.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getlocation/SyncGetLocation.java (100%) create mode 100644 owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/AsyncListCertificateIssuanceConfigs.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/AsyncListCertificateIssuanceConfigsPaged.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/SyncListCertificateIssuanceConfigs.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/SyncListCertificateIssuanceConfigsLocationname.java create mode 100644 owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/SyncListCertificateIssuanceConfigsString.java rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/AsyncListCertificateMapEntries.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/AsyncListCertificateMapEntriesPaged.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/SyncListCertificateMapEntries.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/SyncListCertificateMapEntriesCertificatemapname.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/SyncListCertificateMapEntriesString.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/AsyncListCertificateMaps.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/AsyncListCertificateMapsPaged.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/SyncListCertificateMaps.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/SyncListCertificateMapsLocationname.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/SyncListCertificateMapsString.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/AsyncListCertificates.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/AsyncListCertificatesPaged.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/SyncListCertificates.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/SyncListCertificatesLocationname.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/SyncListCertificatesString.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/AsyncListDnsAuthorizations.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/AsyncListDnsAuthorizationsPaged.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/SyncListDnsAuthorizations.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/SyncListDnsAuthorizationsLocationname.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/SyncListDnsAuthorizationsString.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listlocations/AsyncListLocations.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listlocations/AsyncListLocationsPaged.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listlocations/SyncListLocations.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificate/AsyncUpdateCertificate.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificate/AsyncUpdateCertificateLRO.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificate/SyncUpdateCertificate.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemap/AsyncUpdateCertificateMap.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemap/AsyncUpdateCertificateMapLRO.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemap/SyncUpdateCertificateMap.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemap/SyncUpdateCertificateMapCertificatemapFieldmask.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemapentry/AsyncUpdateCertificateMapEntry.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemapentry/AsyncUpdateCertificateMapEntryLRO.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemapentry/SyncUpdateCertificateMapEntry.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemapentry/SyncUpdateCertificateMapEntryCertificatemapentryFieldmask.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatednsauthorization/AsyncUpdateDnsAuthorization.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatednsauthorization/AsyncUpdateDnsAuthorizationLRO.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatednsauthorization/SyncUpdateDnsAuthorization.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatednsauthorization/SyncUpdateDnsAuthorizationDnsauthorizationFieldmask.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagersettings/getcertificate/SyncGetCertificate.java (100%) rename {java-certificate-manager => owl-bot-staging/java-certificate-manager/v1}/samples/snippets/generated/com/google/cloud/certificatemanager/v1/stub/certificatemanagerstubsettings/getcertificate/SyncGetCertificate.java (100%) diff --git a/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerGrpc.java b/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerGrpc.java deleted file mode 100644 index 27f616e7379e..000000000000 --- a/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerGrpc.java +++ /dev/null @@ -1,2783 +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.certificatemanager.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * API Overview
- * Certificates Manager API allows customers to see and manage all their TLS
- * certificates.
- * Certificates Manager API service provides methods to manage certificates,
- * group them into collections, and create serving configuration that can be
- * easily applied to other Cloud resources e.g. Target Proxies.
- * Data Model
- * The Certificates Manager service exposes the following resources:
- * * `Certificate` which describes a single TLS certificate.
- * * `CertificateMap` which describes a collection of certificates that can be
- * attached to a target resource.
- * * `CertificateMapEntry` which describes a single configuration entry that
- * consists of a SNI and a group of certificates. It's a subresource of
- * CertificateMap.
- * Certificate, CertificateMap and CertificateMapEntry IDs
- * have to match "^[a-z0-9-]{1,63}$" regexp, which means that
- * - only lower case letters, digits, and hyphen are allowed
- * - length of the resource ID has to be in [1,63] range.
- * Provides methods to manage Cloud Certificate Manager entities.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/certificatemanager/v1/certificate_manager.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CertificateManagerGrpc { - - private CertificateManagerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.certificatemanager.v1.CertificateManager"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.ListCertificatesRequest, - com.google.cloud.certificatemanager.v1.ListCertificatesResponse> - getListCertificatesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCertificates", - requestType = com.google.cloud.certificatemanager.v1.ListCertificatesRequest.class, - responseType = com.google.cloud.certificatemanager.v1.ListCertificatesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.ListCertificatesRequest, - com.google.cloud.certificatemanager.v1.ListCertificatesResponse> - getListCertificatesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.ListCertificatesRequest, - com.google.cloud.certificatemanager.v1.ListCertificatesResponse> - getListCertificatesMethod; - if ((getListCertificatesMethod = CertificateManagerGrpc.getListCertificatesMethod) == null) { - synchronized (CertificateManagerGrpc.class) { - if ((getListCertificatesMethod = CertificateManagerGrpc.getListCertificatesMethod) - == null) { - CertificateManagerGrpc.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.certificatemanager.v1.ListCertificatesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1.ListCertificatesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateManagerMethodDescriptorSupplier("ListCertificates")) - .build(); - } - } - } - return getListCertificatesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.GetCertificateRequest, - com.google.cloud.certificatemanager.v1.Certificate> - getGetCertificateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCertificate", - requestType = com.google.cloud.certificatemanager.v1.GetCertificateRequest.class, - responseType = com.google.cloud.certificatemanager.v1.Certificate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.GetCertificateRequest, - com.google.cloud.certificatemanager.v1.Certificate> - getGetCertificateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.GetCertificateRequest, - com.google.cloud.certificatemanager.v1.Certificate> - getGetCertificateMethod; - if ((getGetCertificateMethod = CertificateManagerGrpc.getGetCertificateMethod) == null) { - synchronized (CertificateManagerGrpc.class) { - if ((getGetCertificateMethod = CertificateManagerGrpc.getGetCertificateMethod) == null) { - CertificateManagerGrpc.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.certificatemanager.v1.GetCertificateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1.Certificate - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateManagerMethodDescriptorSupplier("GetCertificate")) - .build(); - } - } - } - return getGetCertificateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.CreateCertificateRequest, - com.google.longrunning.Operation> - getCreateCertificateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCertificate", - requestType = com.google.cloud.certificatemanager.v1.CreateCertificateRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.CreateCertificateRequest, - com.google.longrunning.Operation> - getCreateCertificateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.CreateCertificateRequest, - com.google.longrunning.Operation> - getCreateCertificateMethod; - if ((getCreateCertificateMethod = CertificateManagerGrpc.getCreateCertificateMethod) == null) { - synchronized (CertificateManagerGrpc.class) { - if ((getCreateCertificateMethod = CertificateManagerGrpc.getCreateCertificateMethod) - == null) { - CertificateManagerGrpc.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.certificatemanager.v1.CreateCertificateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateManagerMethodDescriptorSupplier("CreateCertificate")) - .build(); - } - } - } - return getCreateCertificateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.UpdateCertificateRequest, - com.google.longrunning.Operation> - getUpdateCertificateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCertificate", - requestType = com.google.cloud.certificatemanager.v1.UpdateCertificateRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.UpdateCertificateRequest, - com.google.longrunning.Operation> - getUpdateCertificateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.UpdateCertificateRequest, - com.google.longrunning.Operation> - getUpdateCertificateMethod; - if ((getUpdateCertificateMethod = CertificateManagerGrpc.getUpdateCertificateMethod) == null) { - synchronized (CertificateManagerGrpc.class) { - if ((getUpdateCertificateMethod = CertificateManagerGrpc.getUpdateCertificateMethod) - == null) { - CertificateManagerGrpc.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.certificatemanager.v1.UpdateCertificateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateManagerMethodDescriptorSupplier("UpdateCertificate")) - .build(); - } - } - } - return getUpdateCertificateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.DeleteCertificateRequest, - com.google.longrunning.Operation> - getDeleteCertificateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCertificate", - requestType = com.google.cloud.certificatemanager.v1.DeleteCertificateRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.DeleteCertificateRequest, - com.google.longrunning.Operation> - getDeleteCertificateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.DeleteCertificateRequest, - com.google.longrunning.Operation> - getDeleteCertificateMethod; - if ((getDeleteCertificateMethod = CertificateManagerGrpc.getDeleteCertificateMethod) == null) { - synchronized (CertificateManagerGrpc.class) { - if ((getDeleteCertificateMethod = CertificateManagerGrpc.getDeleteCertificateMethod) - == null) { - CertificateManagerGrpc.getDeleteCertificateMethod = - getDeleteCertificateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCertificate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1.DeleteCertificateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateManagerMethodDescriptorSupplier("DeleteCertificate")) - .build(); - } - } - } - return getDeleteCertificateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest, - com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse> - getListCertificateMapsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCertificateMaps", - requestType = com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest.class, - responseType = com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest, - com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse> - getListCertificateMapsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest, - com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse> - getListCertificateMapsMethod; - if ((getListCertificateMapsMethod = CertificateManagerGrpc.getListCertificateMapsMethod) - == null) { - synchronized (CertificateManagerGrpc.class) { - if ((getListCertificateMapsMethod = CertificateManagerGrpc.getListCertificateMapsMethod) - == null) { - CertificateManagerGrpc.getListCertificateMapsMethod = - getListCertificateMapsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListCertificateMaps")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateManagerMethodDescriptorSupplier("ListCertificateMaps")) - .build(); - } - } - } - return getListCertificateMapsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.GetCertificateMapRequest, - com.google.cloud.certificatemanager.v1.CertificateMap> - getGetCertificateMapMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCertificateMap", - requestType = com.google.cloud.certificatemanager.v1.GetCertificateMapRequest.class, - responseType = com.google.cloud.certificatemanager.v1.CertificateMap.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.GetCertificateMapRequest, - com.google.cloud.certificatemanager.v1.CertificateMap> - getGetCertificateMapMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.GetCertificateMapRequest, - com.google.cloud.certificatemanager.v1.CertificateMap> - getGetCertificateMapMethod; - if ((getGetCertificateMapMethod = CertificateManagerGrpc.getGetCertificateMapMethod) == null) { - synchronized (CertificateManagerGrpc.class) { - if ((getGetCertificateMapMethod = CertificateManagerGrpc.getGetCertificateMapMethod) - == null) { - CertificateManagerGrpc.getGetCertificateMapMethod = - getGetCertificateMapMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCertificateMap")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1.GetCertificateMapRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1.CertificateMap - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateManagerMethodDescriptorSupplier("GetCertificateMap")) - .build(); - } - } - } - return getGetCertificateMapMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest, - com.google.longrunning.Operation> - getCreateCertificateMapMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCertificateMap", - requestType = com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest, - com.google.longrunning.Operation> - getCreateCertificateMapMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest, - com.google.longrunning.Operation> - getCreateCertificateMapMethod; - if ((getCreateCertificateMapMethod = CertificateManagerGrpc.getCreateCertificateMapMethod) - == null) { - synchronized (CertificateManagerGrpc.class) { - if ((getCreateCertificateMapMethod = CertificateManagerGrpc.getCreateCertificateMapMethod) - == null) { - CertificateManagerGrpc.getCreateCertificateMapMethod = - getCreateCertificateMapMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateCertificateMap")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateManagerMethodDescriptorSupplier("CreateCertificateMap")) - .build(); - } - } - } - return getCreateCertificateMapMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest, - com.google.longrunning.Operation> - getUpdateCertificateMapMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateMap", - requestType = com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest, - com.google.longrunning.Operation> - getUpdateCertificateMapMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest, - com.google.longrunning.Operation> - getUpdateCertificateMapMethod; - if ((getUpdateCertificateMapMethod = CertificateManagerGrpc.getUpdateCertificateMapMethod) - == null) { - synchronized (CertificateManagerGrpc.class) { - if ((getUpdateCertificateMapMethod = CertificateManagerGrpc.getUpdateCertificateMapMethod) - == null) { - CertificateManagerGrpc.getUpdateCertificateMapMethod = - getUpdateCertificateMapMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateCertificateMap")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateManagerMethodDescriptorSupplier("UpdateCertificateMap")) - .build(); - } - } - } - return getUpdateCertificateMapMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest, - com.google.longrunning.Operation> - getDeleteCertificateMapMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCertificateMap", - requestType = com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest, - com.google.longrunning.Operation> - getDeleteCertificateMapMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest, - com.google.longrunning.Operation> - getDeleteCertificateMapMethod; - if ((getDeleteCertificateMapMethod = CertificateManagerGrpc.getDeleteCertificateMapMethod) - == null) { - synchronized (CertificateManagerGrpc.class) { - if ((getDeleteCertificateMapMethod = CertificateManagerGrpc.getDeleteCertificateMapMethod) - == null) { - CertificateManagerGrpc.getDeleteCertificateMapMethod = - getDeleteCertificateMapMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteCertificateMap")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateManagerMethodDescriptorSupplier("DeleteCertificateMap")) - .build(); - } - } - } - return getDeleteCertificateMapMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest, - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse> - getListCertificateMapEntriesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCertificateMapEntries", - requestType = com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest.class, - responseType = com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest, - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse> - getListCertificateMapEntriesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest, - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse> - getListCertificateMapEntriesMethod; - if ((getListCertificateMapEntriesMethod = - CertificateManagerGrpc.getListCertificateMapEntriesMethod) - == null) { - synchronized (CertificateManagerGrpc.class) { - if ((getListCertificateMapEntriesMethod = - CertificateManagerGrpc.getListCertificateMapEntriesMethod) - == null) { - CertificateManagerGrpc.getListCertificateMapEntriesMethod = - getListCertificateMapEntriesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListCertificateMapEntries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1 - .ListCertificateMapEntriesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1 - .ListCertificateMapEntriesResponse.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateManagerMethodDescriptorSupplier( - "ListCertificateMapEntries")) - .build(); - } - } - } - return getListCertificateMapEntriesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest, - com.google.cloud.certificatemanager.v1.CertificateMapEntry> - getGetCertificateMapEntryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCertificateMapEntry", - requestType = com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest.class, - responseType = com.google.cloud.certificatemanager.v1.CertificateMapEntry.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest, - com.google.cloud.certificatemanager.v1.CertificateMapEntry> - getGetCertificateMapEntryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest, - com.google.cloud.certificatemanager.v1.CertificateMapEntry> - getGetCertificateMapEntryMethod; - if ((getGetCertificateMapEntryMethod = CertificateManagerGrpc.getGetCertificateMapEntryMethod) - == null) { - synchronized (CertificateManagerGrpc.class) { - if ((getGetCertificateMapEntryMethod = - CertificateManagerGrpc.getGetCertificateMapEntryMethod) - == null) { - CertificateManagerGrpc.getGetCertificateMapEntryMethod = - getGetCertificateMapEntryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetCertificateMapEntry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1.CertificateMapEntry - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateManagerMethodDescriptorSupplier("GetCertificateMapEntry")) - .build(); - } - } - } - return getGetCertificateMapEntryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest, - com.google.longrunning.Operation> - getCreateCertificateMapEntryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCertificateMapEntry", - requestType = com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest, - com.google.longrunning.Operation> - getCreateCertificateMapEntryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest, - com.google.longrunning.Operation> - getCreateCertificateMapEntryMethod; - if ((getCreateCertificateMapEntryMethod = - CertificateManagerGrpc.getCreateCertificateMapEntryMethod) - == null) { - synchronized (CertificateManagerGrpc.class) { - if ((getCreateCertificateMapEntryMethod = - CertificateManagerGrpc.getCreateCertificateMapEntryMethod) - == null) { - CertificateManagerGrpc.getCreateCertificateMapEntryMethod = - getCreateCertificateMapEntryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateCertificateMapEntry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1 - .CreateCertificateMapEntryRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateManagerMethodDescriptorSupplier( - "CreateCertificateMapEntry")) - .build(); - } - } - } - return getCreateCertificateMapEntryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest, - com.google.longrunning.Operation> - getUpdateCertificateMapEntryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateMapEntry", - requestType = com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest, - com.google.longrunning.Operation> - getUpdateCertificateMapEntryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest, - com.google.longrunning.Operation> - getUpdateCertificateMapEntryMethod; - if ((getUpdateCertificateMapEntryMethod = - CertificateManagerGrpc.getUpdateCertificateMapEntryMethod) - == null) { - synchronized (CertificateManagerGrpc.class) { - if ((getUpdateCertificateMapEntryMethod = - CertificateManagerGrpc.getUpdateCertificateMapEntryMethod) - == null) { - CertificateManagerGrpc.getUpdateCertificateMapEntryMethod = - getUpdateCertificateMapEntryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateCertificateMapEntry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1 - .UpdateCertificateMapEntryRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateManagerMethodDescriptorSupplier( - "UpdateCertificateMapEntry")) - .build(); - } - } - } - return getUpdateCertificateMapEntryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest, - com.google.longrunning.Operation> - getDeleteCertificateMapEntryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCertificateMapEntry", - requestType = com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest, - com.google.longrunning.Operation> - getDeleteCertificateMapEntryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest, - com.google.longrunning.Operation> - getDeleteCertificateMapEntryMethod; - if ((getDeleteCertificateMapEntryMethod = - CertificateManagerGrpc.getDeleteCertificateMapEntryMethod) - == null) { - synchronized (CertificateManagerGrpc.class) { - if ((getDeleteCertificateMapEntryMethod = - CertificateManagerGrpc.getDeleteCertificateMapEntryMethod) - == null) { - CertificateManagerGrpc.getDeleteCertificateMapEntryMethod = - getDeleteCertificateMapEntryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteCertificateMapEntry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1 - .DeleteCertificateMapEntryRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateManagerMethodDescriptorSupplier( - "DeleteCertificateMapEntry")) - .build(); - } - } - } - return getDeleteCertificateMapEntryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest, - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse> - getListDnsAuthorizationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDnsAuthorizations", - requestType = com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest.class, - responseType = com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest, - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse> - getListDnsAuthorizationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest, - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse> - getListDnsAuthorizationsMethod; - if ((getListDnsAuthorizationsMethod = CertificateManagerGrpc.getListDnsAuthorizationsMethod) - == null) { - synchronized (CertificateManagerGrpc.class) { - if ((getListDnsAuthorizationsMethod = CertificateManagerGrpc.getListDnsAuthorizationsMethod) - == null) { - CertificateManagerGrpc.getListDnsAuthorizationsMethod = - getListDnsAuthorizationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListDnsAuthorizations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateManagerMethodDescriptorSupplier("ListDnsAuthorizations")) - .build(); - } - } - } - return getListDnsAuthorizationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest, - com.google.cloud.certificatemanager.v1.DnsAuthorization> - getGetDnsAuthorizationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDnsAuthorization", - requestType = com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest.class, - responseType = com.google.cloud.certificatemanager.v1.DnsAuthorization.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest, - com.google.cloud.certificatemanager.v1.DnsAuthorization> - getGetDnsAuthorizationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest, - com.google.cloud.certificatemanager.v1.DnsAuthorization> - getGetDnsAuthorizationMethod; - if ((getGetDnsAuthorizationMethod = CertificateManagerGrpc.getGetDnsAuthorizationMethod) - == null) { - synchronized (CertificateManagerGrpc.class) { - if ((getGetDnsAuthorizationMethod = CertificateManagerGrpc.getGetDnsAuthorizationMethod) - == null) { - CertificateManagerGrpc.getGetDnsAuthorizationMethod = - getGetDnsAuthorizationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetDnsAuthorization")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1.DnsAuthorization - .getDefaultInstance())) - .setSchemaDescriptor( - new CertificateManagerMethodDescriptorSupplier("GetDnsAuthorization")) - .build(); - } - } - } - return getGetDnsAuthorizationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest, - com.google.longrunning.Operation> - getCreateDnsAuthorizationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDnsAuthorization", - requestType = com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest, - com.google.longrunning.Operation> - getCreateDnsAuthorizationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest, - com.google.longrunning.Operation> - getCreateDnsAuthorizationMethod; - if ((getCreateDnsAuthorizationMethod = CertificateManagerGrpc.getCreateDnsAuthorizationMethod) - == null) { - synchronized (CertificateManagerGrpc.class) { - if ((getCreateDnsAuthorizationMethod = - CertificateManagerGrpc.getCreateDnsAuthorizationMethod) - == null) { - CertificateManagerGrpc.getCreateDnsAuthorizationMethod = - getCreateDnsAuthorizationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateDnsAuthorization")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateManagerMethodDescriptorSupplier("CreateDnsAuthorization")) - .build(); - } - } - } - return getCreateDnsAuthorizationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest, - com.google.longrunning.Operation> - getUpdateDnsAuthorizationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDnsAuthorization", - requestType = com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest, - com.google.longrunning.Operation> - getUpdateDnsAuthorizationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest, - com.google.longrunning.Operation> - getUpdateDnsAuthorizationMethod; - if ((getUpdateDnsAuthorizationMethod = CertificateManagerGrpc.getUpdateDnsAuthorizationMethod) - == null) { - synchronized (CertificateManagerGrpc.class) { - if ((getUpdateDnsAuthorizationMethod = - CertificateManagerGrpc.getUpdateDnsAuthorizationMethod) - == null) { - CertificateManagerGrpc.getUpdateDnsAuthorizationMethod = - getUpdateDnsAuthorizationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateDnsAuthorization")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateManagerMethodDescriptorSupplier("UpdateDnsAuthorization")) - .build(); - } - } - } - return getUpdateDnsAuthorizationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest, - com.google.longrunning.Operation> - getDeleteDnsAuthorizationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDnsAuthorization", - requestType = com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest, - com.google.longrunning.Operation> - getDeleteDnsAuthorizationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest, - com.google.longrunning.Operation> - getDeleteDnsAuthorizationMethod; - if ((getDeleteDnsAuthorizationMethod = CertificateManagerGrpc.getDeleteDnsAuthorizationMethod) - == null) { - synchronized (CertificateManagerGrpc.class) { - if ((getDeleteDnsAuthorizationMethod = - CertificateManagerGrpc.getDeleteDnsAuthorizationMethod) - == null) { - CertificateManagerGrpc.getDeleteDnsAuthorizationMethod = - getDeleteDnsAuthorizationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteDnsAuthorization")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new CertificateManagerMethodDescriptorSupplier("DeleteDnsAuthorization")) - .build(); - } - } - } - return getDeleteDnsAuthorizationMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static CertificateManagerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CertificateManagerStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateManagerStub(channel, callOptions); - } - }; - return CertificateManagerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CertificateManagerBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CertificateManagerBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateManagerBlockingStub(channel, callOptions); - } - }; - return CertificateManagerBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static CertificateManagerFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CertificateManagerFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateManagerFutureStub(channel, callOptions); - } - }; - return CertificateManagerFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * API Overview
-   * Certificates Manager API allows customers to see and manage all their TLS
-   * certificates.
-   * Certificates Manager API service provides methods to manage certificates,
-   * group them into collections, and create serving configuration that can be
-   * easily applied to other Cloud resources e.g. Target Proxies.
-   * Data Model
-   * The Certificates Manager service exposes the following resources:
-   * * `Certificate` which describes a single TLS certificate.
-   * * `CertificateMap` which describes a collection of certificates that can be
-   * attached to a target resource.
-   * * `CertificateMapEntry` which describes a single configuration entry that
-   * consists of a SNI and a group of certificates. It's a subresource of
-   * CertificateMap.
-   * Certificate, CertificateMap and CertificateMapEntry IDs
-   * have to match "^[a-z0-9-]{1,63}$" regexp, which means that
-   * - only lower case letters, digits, and hyphen are allowed
-   * - length of the resource ID has to be in [1,63] range.
-   * Provides methods to manage Cloud Certificate Manager entities.
-   * 
- */ - public abstract static class CertificateManagerImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists Certificates in a given project and location.
-     * 
- */ - public void listCertificates( - com.google.cloud.certificatemanager.v1.ListCertificatesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCertificatesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Certificate.
-     * 
- */ - public void getCertificate( - com.google.cloud.certificatemanager.v1.GetCertificateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCertificateMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new Certificate in a given project and location.
-     * 
- */ - public void createCertificate( - com.google.cloud.certificatemanager.v1.CreateCertificateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateCertificateMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a Certificate.
-     * 
- */ - public void updateCertificate( - com.google.cloud.certificatemanager.v1.UpdateCertificateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateCertificateMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single Certificate.
-     * 
- */ - public void deleteCertificate( - com.google.cloud.certificatemanager.v1.DeleteCertificateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteCertificateMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists CertificateMaps in a given project and location.
-     * 
- */ - public void listCertificateMaps( - com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCertificateMapsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single CertificateMap.
-     * 
- */ - public void getCertificateMap( - com.google.cloud.certificatemanager.v1.GetCertificateMapRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCertificateMapMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new CertificateMap in a given project and location.
-     * 
- */ - public void createCertificateMap( - com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateCertificateMapMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a CertificateMap.
-     * 
- */ - public void updateCertificateMap( - com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateCertificateMapMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single CertificateMap. A Certificate Map can't be deleted
-     * if it contains Certificate Map Entries. Remove all the entries from
-     * the map before calling this method.
-     * 
- */ - public void deleteCertificateMap( - com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteCertificateMapMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists CertificateMapEntries in a given project and location.
-     * 
- */ - public void listCertificateMapEntries( - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCertificateMapEntriesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single CertificateMapEntry.
-     * 
- */ - public void getCertificateMapEntry( - com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCertificateMapEntryMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new CertificateMapEntry in a given project and location.
-     * 
- */ - public void createCertificateMapEntry( - com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateCertificateMapEntryMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a CertificateMapEntry.
-     * 
- */ - public void updateCertificateMapEntry( - com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateCertificateMapEntryMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single CertificateMapEntry.
-     * 
- */ - public void deleteCertificateMapEntry( - com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteCertificateMapEntryMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists DnsAuthorizations in a given project and location.
-     * 
- */ - public void listDnsAuthorizations( - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDnsAuthorizationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single DnsAuthorization.
-     * 
- */ - public void getDnsAuthorization( - com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetDnsAuthorizationMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new DnsAuthorization in a given project and location.
-     * 
- */ - public void createDnsAuthorization( - com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateDnsAuthorizationMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a DnsAuthorization.
-     * 
- */ - public void updateDnsAuthorization( - com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateDnsAuthorizationMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single DnsAuthorization.
-     * 
- */ - public void deleteDnsAuthorization( - com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteDnsAuthorizationMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListCertificatesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.certificatemanager.v1.ListCertificatesRequest, - com.google.cloud.certificatemanager.v1.ListCertificatesResponse>( - this, METHODID_LIST_CERTIFICATES))) - .addMethod( - getGetCertificateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.certificatemanager.v1.GetCertificateRequest, - com.google.cloud.certificatemanager.v1.Certificate>( - this, METHODID_GET_CERTIFICATE))) - .addMethod( - getCreateCertificateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.certificatemanager.v1.CreateCertificateRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_CERTIFICATE))) - .addMethod( - getUpdateCertificateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.certificatemanager.v1.UpdateCertificateRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_CERTIFICATE))) - .addMethod( - getDeleteCertificateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.certificatemanager.v1.DeleteCertificateRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_CERTIFICATE))) - .addMethod( - getListCertificateMapsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest, - com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse>( - this, METHODID_LIST_CERTIFICATE_MAPS))) - .addMethod( - getGetCertificateMapMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.certificatemanager.v1.GetCertificateMapRequest, - com.google.cloud.certificatemanager.v1.CertificateMap>( - this, METHODID_GET_CERTIFICATE_MAP))) - .addMethod( - getCreateCertificateMapMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_CERTIFICATE_MAP))) - .addMethod( - getUpdateCertificateMapMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_CERTIFICATE_MAP))) - .addMethod( - getDeleteCertificateMapMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_CERTIFICATE_MAP))) - .addMethod( - getListCertificateMapEntriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest, - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse>( - this, METHODID_LIST_CERTIFICATE_MAP_ENTRIES))) - .addMethod( - getGetCertificateMapEntryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest, - com.google.cloud.certificatemanager.v1.CertificateMapEntry>( - this, METHODID_GET_CERTIFICATE_MAP_ENTRY))) - .addMethod( - getCreateCertificateMapEntryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_CERTIFICATE_MAP_ENTRY))) - .addMethod( - getUpdateCertificateMapEntryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_CERTIFICATE_MAP_ENTRY))) - .addMethod( - getDeleteCertificateMapEntryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_CERTIFICATE_MAP_ENTRY))) - .addMethod( - getListDnsAuthorizationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest, - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse>( - this, METHODID_LIST_DNS_AUTHORIZATIONS))) - .addMethod( - getGetDnsAuthorizationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest, - com.google.cloud.certificatemanager.v1.DnsAuthorization>( - this, METHODID_GET_DNS_AUTHORIZATION))) - .addMethod( - getCreateDnsAuthorizationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_DNS_AUTHORIZATION))) - .addMethod( - getUpdateDnsAuthorizationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_DNS_AUTHORIZATION))) - .addMethod( - getDeleteDnsAuthorizationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_DNS_AUTHORIZATION))) - .build(); - } - } - - /** - * - * - *
-   * API Overview
-   * Certificates Manager API allows customers to see and manage all their TLS
-   * certificates.
-   * Certificates Manager API service provides methods to manage certificates,
-   * group them into collections, and create serving configuration that can be
-   * easily applied to other Cloud resources e.g. Target Proxies.
-   * Data Model
-   * The Certificates Manager service exposes the following resources:
-   * * `Certificate` which describes a single TLS certificate.
-   * * `CertificateMap` which describes a collection of certificates that can be
-   * attached to a target resource.
-   * * `CertificateMapEntry` which describes a single configuration entry that
-   * consists of a SNI and a group of certificates. It's a subresource of
-   * CertificateMap.
-   * Certificate, CertificateMap and CertificateMapEntry IDs
-   * have to match "^[a-z0-9-]{1,63}$" regexp, which means that
-   * - only lower case letters, digits, and hyphen are allowed
-   * - length of the resource ID has to be in [1,63] range.
-   * Provides methods to manage Cloud Certificate Manager entities.
-   * 
- */ - public static final class CertificateManagerStub - extends io.grpc.stub.AbstractAsyncStub { - private CertificateManagerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CertificateManagerStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateManagerStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Certificates in a given project and location.
-     * 
- */ - public void listCertificates( - com.google.cloud.certificatemanager.v1.ListCertificatesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCertificatesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Certificate.
-     * 
- */ - public void getCertificate( - com.google.cloud.certificatemanager.v1.GetCertificateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCertificateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new Certificate in a given project and location.
-     * 
- */ - public void createCertificate( - com.google.cloud.certificatemanager.v1.CreateCertificateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCertificateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a Certificate.
-     * 
- */ - public void updateCertificate( - com.google.cloud.certificatemanager.v1.UpdateCertificateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCertificateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single Certificate.
-     * 
- */ - public void deleteCertificate( - com.google.cloud.certificatemanager.v1.DeleteCertificateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCertificateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists CertificateMaps in a given project and location.
-     * 
- */ - public void listCertificateMaps( - com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCertificateMapsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single CertificateMap.
-     * 
- */ - public void getCertificateMap( - com.google.cloud.certificatemanager.v1.GetCertificateMapRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCertificateMapMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new CertificateMap in a given project and location.
-     * 
- */ - public void createCertificateMap( - com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCertificateMapMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a CertificateMap.
-     * 
- */ - public void updateCertificateMap( - com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCertificateMapMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single CertificateMap. A Certificate Map can't be deleted
-     * if it contains Certificate Map Entries. Remove all the entries from
-     * the map before calling this method.
-     * 
- */ - public void deleteCertificateMap( - com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCertificateMapMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists CertificateMapEntries in a given project and location.
-     * 
- */ - public void listCertificateMapEntries( - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCertificateMapEntriesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single CertificateMapEntry.
-     * 
- */ - public void getCertificateMapEntry( - com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCertificateMapEntryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new CertificateMapEntry in a given project and location.
-     * 
- */ - public void createCertificateMapEntry( - com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCertificateMapEntryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a CertificateMapEntry.
-     * 
- */ - public void updateCertificateMapEntry( - com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCertificateMapEntryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single CertificateMapEntry.
-     * 
- */ - public void deleteCertificateMapEntry( - com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCertificateMapEntryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists DnsAuthorizations in a given project and location.
-     * 
- */ - public void listDnsAuthorizations( - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDnsAuthorizationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single DnsAuthorization.
-     * 
- */ - public void getDnsAuthorization( - com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDnsAuthorizationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new DnsAuthorization in a given project and location.
-     * 
- */ - public void createDnsAuthorization( - com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDnsAuthorizationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a DnsAuthorization.
-     * 
- */ - public void updateDnsAuthorization( - com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDnsAuthorizationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single DnsAuthorization.
-     * 
- */ - public void deleteDnsAuthorization( - com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDnsAuthorizationMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * API Overview
-   * Certificates Manager API allows customers to see and manage all their TLS
-   * certificates.
-   * Certificates Manager API service provides methods to manage certificates,
-   * group them into collections, and create serving configuration that can be
-   * easily applied to other Cloud resources e.g. Target Proxies.
-   * Data Model
-   * The Certificates Manager service exposes the following resources:
-   * * `Certificate` which describes a single TLS certificate.
-   * * `CertificateMap` which describes a collection of certificates that can be
-   * attached to a target resource.
-   * * `CertificateMapEntry` which describes a single configuration entry that
-   * consists of a SNI and a group of certificates. It's a subresource of
-   * CertificateMap.
-   * Certificate, CertificateMap and CertificateMapEntry IDs
-   * have to match "^[a-z0-9-]{1,63}$" regexp, which means that
-   * - only lower case letters, digits, and hyphen are allowed
-   * - length of the resource ID has to be in [1,63] range.
-   * Provides methods to manage Cloud Certificate Manager entities.
-   * 
- */ - public static final class CertificateManagerBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private CertificateManagerBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CertificateManagerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateManagerBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Certificates in a given project and location.
-     * 
- */ - public com.google.cloud.certificatemanager.v1.ListCertificatesResponse listCertificates( - com.google.cloud.certificatemanager.v1.ListCertificatesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCertificatesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single Certificate.
-     * 
- */ - public com.google.cloud.certificatemanager.v1.Certificate getCertificate( - com.google.cloud.certificatemanager.v1.GetCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCertificateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new Certificate in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createCertificate( - com.google.cloud.certificatemanager.v1.CreateCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCertificateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a Certificate.
-     * 
- */ - public com.google.longrunning.Operation updateCertificate( - com.google.cloud.certificatemanager.v1.UpdateCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCertificateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single Certificate.
-     * 
- */ - public com.google.longrunning.Operation deleteCertificate( - com.google.cloud.certificatemanager.v1.DeleteCertificateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCertificateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists CertificateMaps in a given project and location.
-     * 
- */ - public com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse listCertificateMaps( - com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCertificateMapsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single CertificateMap.
-     * 
- */ - public com.google.cloud.certificatemanager.v1.CertificateMap getCertificateMap( - com.google.cloud.certificatemanager.v1.GetCertificateMapRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCertificateMapMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new CertificateMap in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createCertificateMap( - com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCertificateMapMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a CertificateMap.
-     * 
- */ - public com.google.longrunning.Operation updateCertificateMap( - com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCertificateMapMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single CertificateMap. A Certificate Map can't be deleted
-     * if it contains Certificate Map Entries. Remove all the entries from
-     * the map before calling this method.
-     * 
- */ - public com.google.longrunning.Operation deleteCertificateMap( - com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCertificateMapMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists CertificateMapEntries in a given project and location.
-     * 
- */ - public com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse - listCertificateMapEntries( - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCertificateMapEntriesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single CertificateMapEntry.
-     * 
- */ - public com.google.cloud.certificatemanager.v1.CertificateMapEntry getCertificateMapEntry( - com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCertificateMapEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new CertificateMapEntry in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createCertificateMapEntry( - com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCertificateMapEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a CertificateMapEntry.
-     * 
- */ - public com.google.longrunning.Operation updateCertificateMapEntry( - com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCertificateMapEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single CertificateMapEntry.
-     * 
- */ - public com.google.longrunning.Operation deleteCertificateMapEntry( - com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCertificateMapEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists DnsAuthorizations in a given project and location.
-     * 
- */ - public com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse - listDnsAuthorizations( - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDnsAuthorizationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single DnsAuthorization.
-     * 
- */ - public com.google.cloud.certificatemanager.v1.DnsAuthorization getDnsAuthorization( - com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDnsAuthorizationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new DnsAuthorization in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createDnsAuthorization( - com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDnsAuthorizationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a DnsAuthorization.
-     * 
- */ - public com.google.longrunning.Operation updateDnsAuthorization( - com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDnsAuthorizationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single DnsAuthorization.
-     * 
- */ - public com.google.longrunning.Operation deleteDnsAuthorization( - com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDnsAuthorizationMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * API Overview
-   * Certificates Manager API allows customers to see and manage all their TLS
-   * certificates.
-   * Certificates Manager API service provides methods to manage certificates,
-   * group them into collections, and create serving configuration that can be
-   * easily applied to other Cloud resources e.g. Target Proxies.
-   * Data Model
-   * The Certificates Manager service exposes the following resources:
-   * * `Certificate` which describes a single TLS certificate.
-   * * `CertificateMap` which describes a collection of certificates that can be
-   * attached to a target resource.
-   * * `CertificateMapEntry` which describes a single configuration entry that
-   * consists of a SNI and a group of certificates. It's a subresource of
-   * CertificateMap.
-   * Certificate, CertificateMap and CertificateMapEntry IDs
-   * have to match "^[a-z0-9-]{1,63}$" regexp, which means that
-   * - only lower case letters, digits, and hyphen are allowed
-   * - length of the resource ID has to be in [1,63] range.
-   * Provides methods to manage Cloud Certificate Manager entities.
-   * 
- */ - public static final class CertificateManagerFutureStub - extends io.grpc.stub.AbstractFutureStub { - private CertificateManagerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CertificateManagerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CertificateManagerFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Certificates in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.certificatemanager.v1.ListCertificatesResponse> - listCertificates(com.google.cloud.certificatemanager.v1.ListCertificatesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCertificatesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single Certificate.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.certificatemanager.v1.Certificate> - getCertificate(com.google.cloud.certificatemanager.v1.GetCertificateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCertificateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new Certificate in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createCertificate(com.google.cloud.certificatemanager.v1.CreateCertificateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCertificateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a Certificate.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateCertificate(com.google.cloud.certificatemanager.v1.UpdateCertificateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCertificateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single Certificate.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteCertificate(com.google.cloud.certificatemanager.v1.DeleteCertificateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCertificateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists CertificateMaps in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse> - listCertificateMaps( - com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCertificateMapsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single CertificateMap.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.certificatemanager.v1.CertificateMap> - getCertificateMap(com.google.cloud.certificatemanager.v1.GetCertificateMapRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCertificateMapMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new CertificateMap in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createCertificateMap( - com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCertificateMapMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a CertificateMap.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateCertificateMap( - com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCertificateMapMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single CertificateMap. A Certificate Map can't be deleted
-     * if it contains Certificate Map Entries. Remove all the entries from
-     * the map before calling this method.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteCertificateMap( - com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCertificateMapMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists CertificateMapEntries in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse> - listCertificateMapEntries( - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCertificateMapEntriesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single CertificateMapEntry.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.certificatemanager.v1.CertificateMapEntry> - getCertificateMapEntry( - com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCertificateMapEntryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new CertificateMapEntry in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createCertificateMapEntry( - com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCertificateMapEntryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a CertificateMapEntry.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateCertificateMapEntry( - com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCertificateMapEntryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single CertificateMapEntry.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteCertificateMapEntry( - com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCertificateMapEntryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists DnsAuthorizations in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse> - listDnsAuthorizations( - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDnsAuthorizationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single DnsAuthorization.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.certificatemanager.v1.DnsAuthorization> - getDnsAuthorization( - com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDnsAuthorizationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new DnsAuthorization in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createDnsAuthorization( - com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDnsAuthorizationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a DnsAuthorization.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateDnsAuthorization( - com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDnsAuthorizationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single DnsAuthorization.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteDnsAuthorization( - com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDnsAuthorizationMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_CERTIFICATES = 0; - private static final int METHODID_GET_CERTIFICATE = 1; - private static final int METHODID_CREATE_CERTIFICATE = 2; - private static final int METHODID_UPDATE_CERTIFICATE = 3; - private static final int METHODID_DELETE_CERTIFICATE = 4; - private static final int METHODID_LIST_CERTIFICATE_MAPS = 5; - private static final int METHODID_GET_CERTIFICATE_MAP = 6; - private static final int METHODID_CREATE_CERTIFICATE_MAP = 7; - private static final int METHODID_UPDATE_CERTIFICATE_MAP = 8; - private static final int METHODID_DELETE_CERTIFICATE_MAP = 9; - private static final int METHODID_LIST_CERTIFICATE_MAP_ENTRIES = 10; - private static final int METHODID_GET_CERTIFICATE_MAP_ENTRY = 11; - private static final int METHODID_CREATE_CERTIFICATE_MAP_ENTRY = 12; - private static final int METHODID_UPDATE_CERTIFICATE_MAP_ENTRY = 13; - private static final int METHODID_DELETE_CERTIFICATE_MAP_ENTRY = 14; - private static final int METHODID_LIST_DNS_AUTHORIZATIONS = 15; - private static final int METHODID_GET_DNS_AUTHORIZATION = 16; - private static final int METHODID_CREATE_DNS_AUTHORIZATION = 17; - private static final int METHODID_UPDATE_DNS_AUTHORIZATION = 18; - private static final int METHODID_DELETE_DNS_AUTHORIZATION = 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 CertificateManagerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CertificateManagerImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_CERTIFICATES: - serviceImpl.listCertificates( - (com.google.cloud.certificatemanager.v1.ListCertificatesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.certificatemanager.v1.ListCertificatesResponse>) - responseObserver); - break; - case METHODID_GET_CERTIFICATE: - serviceImpl.getCertificate( - (com.google.cloud.certificatemanager.v1.GetCertificateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_CERTIFICATE: - serviceImpl.createCertificate( - (com.google.cloud.certificatemanager.v1.CreateCertificateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CERTIFICATE: - serviceImpl.updateCertificate( - (com.google.cloud.certificatemanager.v1.UpdateCertificateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CERTIFICATE: - serviceImpl.deleteCertificate( - (com.google.cloud.certificatemanager.v1.DeleteCertificateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CERTIFICATE_MAPS: - serviceImpl.listCertificateMaps( - (com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse>) - responseObserver); - break; - case METHODID_GET_CERTIFICATE_MAP: - serviceImpl.getCertificateMap( - (com.google.cloud.certificatemanager.v1.GetCertificateMapRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_CERTIFICATE_MAP: - serviceImpl.createCertificateMap( - (com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CERTIFICATE_MAP: - serviceImpl.updateCertificateMap( - (com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CERTIFICATE_MAP: - serviceImpl.deleteCertificateMap( - (com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CERTIFICATE_MAP_ENTRIES: - serviceImpl.listCertificateMapEntries( - (com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse>) - responseObserver); - break; - case METHODID_GET_CERTIFICATE_MAP_ENTRY: - serviceImpl.getCertificateMapEntry( - (com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.certificatemanager.v1.CertificateMapEntry>) - responseObserver); - break; - case METHODID_CREATE_CERTIFICATE_MAP_ENTRY: - serviceImpl.createCertificateMapEntry( - (com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CERTIFICATE_MAP_ENTRY: - serviceImpl.updateCertificateMapEntry( - (com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CERTIFICATE_MAP_ENTRY: - serviceImpl.deleteCertificateMapEntry( - (com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_DNS_AUTHORIZATIONS: - serviceImpl.listDnsAuthorizations( - (com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse>) - responseObserver); - break; - case METHODID_GET_DNS_AUTHORIZATION: - serviceImpl.getDnsAuthorization( - (com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_DNS_AUTHORIZATION: - serviceImpl.createDnsAuthorization( - (com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_DNS_AUTHORIZATION: - serviceImpl.updateDnsAuthorization( - (com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_DNS_AUTHORIZATION: - serviceImpl.deleteDnsAuthorization( - (com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest) 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 CertificateManagerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - CertificateManagerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("CertificateManager"); - } - } - - private static final class CertificateManagerFileDescriptorSupplier - extends CertificateManagerBaseDescriptorSupplier { - CertificateManagerFileDescriptorSupplier() {} - } - - private static final class CertificateManagerMethodDescriptorSupplier - extends CertificateManagerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - CertificateManagerMethodDescriptorSupplier(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 (CertificateManagerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CertificateManagerFileDescriptorSupplier()) - .addMethod(getListCertificatesMethod()) - .addMethod(getGetCertificateMethod()) - .addMethod(getCreateCertificateMethod()) - .addMethod(getUpdateCertificateMethod()) - .addMethod(getDeleteCertificateMethod()) - .addMethod(getListCertificateMapsMethod()) - .addMethod(getGetCertificateMapMethod()) - .addMethod(getCreateCertificateMapMethod()) - .addMethod(getUpdateCertificateMapMethod()) - .addMethod(getDeleteCertificateMapMethod()) - .addMethod(getListCertificateMapEntriesMethod()) - .addMethod(getGetCertificateMapEntryMethod()) - .addMethod(getCreateCertificateMapEntryMethod()) - .addMethod(getUpdateCertificateMapEntryMethod()) - .addMethod(getDeleteCertificateMapEntryMethod()) - .addMethod(getListDnsAuthorizationsMethod()) - .addMethod(getGetDnsAuthorizationMethod()) - .addMethod(getCreateDnsAuthorizationMethod()) - .addMethod(getUpdateDnsAuthorizationMethod()) - .addMethod(getDeleteDnsAuthorizationMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerProto.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerProto.java deleted file mode 100644 index 4828dead84fb..000000000000 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerProto.java +++ /dev/null @@ -1,965 +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/certificatemanager/v1/certificate_manager.proto - -package com.google.cloud.certificatemanager.v1; - -public final class CertificateManagerProto { - private CertificateManagerProto() {} - - 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_certificatemanager_v1_ListCertificatesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_ListCertificatesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_ListCertificatesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_ListCertificatesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_GetCertificateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_GetCertificateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_CreateCertificateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_CreateCertificateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_UpdateCertificateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_UpdateCertificateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_DeleteCertificateRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_DeleteCertificateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_GetCertificateMapRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_GetCertificateMapRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_GetCertificateMapEntryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_GetCertificateMapEntryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapEntryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapEntryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapEntryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapEntryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapEntryRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapEntryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_GetDnsAuthorizationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_GetDnsAuthorizationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_CreateDnsAuthorizationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_CreateDnsAuthorizationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_UpdateDnsAuthorizationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_UpdateDnsAuthorizationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_DeleteDnsAuthorizationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_DeleteDnsAuthorizationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_Certificate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_Certificate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_Certificate_SelfManagedCertificate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_Certificate_SelfManagedCertificate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_ProvisioningIssue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_ProvisioningIssue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_AuthorizationAttemptInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_AuthorizationAttemptInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_Certificate_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_Certificate_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_CertificateMap_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_CertificateMap_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_IpConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_IpConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_CertificateMap_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_CertificateMap_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_DnsResourceRecord_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_DnsResourceRecord_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_LabelsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n.goog" - + "le.cloud.certificatemanager.v1.Certifica" - + "teMap.LabelsEntry\022X\n\014gclb_targets\030\004 \003(\0132" - + "=.google.cloud.certificatemanager.v1.Cer" - + "tificateMap.GclbTargetB\003\340A\003\032\341\001\n\nGclbTarg" - + "et\022\034\n\022target_https_proxy\030\001 \001(\tH\000\022\032\n\020targ" - + "et_ssl_proxy\030\003 \001(\tH\000\022Z\n\nip_configs\030\002 \003(\013" - + "2F.google.cloud.certificatemanager.v1.Ce" - + "rtificateMap.GclbTarget.IpConfig\032-\n\010IpCo" - + "nfig\022\022\n\nip_address\030\001 \001(\t\022\r\n\005ports\030\003 \003(\rB" - + "\016\n\014target_proxy\032-\n\013LabelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\200\001\352A}\n0certificat" - + "emanager.googleapis.com/CertificateMap\022I" - + "projects/{project}/locations/{location}/" - + "certificateMaps/{certificate_map}\"\221\006\n\023Ce" - + "rtificateMapEntry\022\014\n\004name\030\001 \001(\t\022\023\n\013descr" - + "iption\030\t \001(\t\0224\n\013create_time\030\002 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\0224\n\013update_tim" - + "e\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\022S\n\006labels\030\004 \003(\0132C.google.cloud.certific" - + "atemanager.v1.CertificateMapEntry.Labels" - + "Entry\022\022\n\010hostname\030\005 \001(\tH\000\022R\n\007matcher\030\n \001" - + "(\0162?.google.cloud.certificatemanager.v1." - + "CertificateMapEntry.MatcherH\000\022H\n\014certifi" - + "cates\030\007 \003(\tB2\372A/\n-certificatemanager.goo" - + "gleapis.com/Certificate\022D\n\005state\030\010 \001(\01620" - + ".google.cloud.certificatemanager.v1.Serv" - + "ingStateB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"/\n\007Matcher\022\027\n\023MATCH" - + "ER_UNSPECIFIED\020\000\022\013\n\007PRIMARY\020\001:\264\001\352A\260\001\n5ce" - + "rtificatemanager.googleapis.com/Certific" - + "ateMapEntry\022wprojects/{project}/location" - + "s/{location}/certificateMaps/{certificat" - + "e_map}/certificateMapEntries/{certificat" - + "e_map_entry}B\007\n\005match\"\374\004\n\020DnsAuthorizati" - + "on\022\014\n\004name\030\001 \001(\t\0224\n\013create_time\030\002 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\0224\n\013update" - + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\022P\n\006labels\030\004 \003(\0132@.google.cloud.cert" - + "ificatemanager.v1.DnsAuthorization.Label" - + "sEntry\022\023\n\013description\030\005 \001(\t\022\026\n\006domain\030\006 " - + "\001(\tB\006\340A\002\340A\005\022h\n\023dns_resource_record\030\n \001(\013" - + "2F.google.cloud.certificatemanager.v1.Dn" - + "sAuthorization.DnsResourceRecordB\003\340A\003\032L\n" - + "\021DnsResourceRecord\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\021\n" - + "\004type\030\002 \001(\tB\003\340A\003\022\021\n\004data\030\003 \001(\tB\003\340A\003\032-\n\013L" - + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001:\207\001\352A\203\001\n2certificatemanager.googleapis" - + ".com/DnsAuthorization\022Mprojects/{project" - + "}/locations/{location}/dnsAuthorizations" - + "/{dns_authorization}*F\n\014ServingState\022\035\n\031" - + "SERVING_STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022" - + "\013\n\007PENDING\020\0022\336(\n\022CertificateManager\022\320\001\n\020" - + "ListCertificates\022;.google.cloud.certific" - + "atemanager.v1.ListCertificatesRequest\032<." - + "google.cloud.certificatemanager.v1.ListC" - + "ertificatesResponse\"A\202\323\344\223\0022\0220/v1/{parent" - + "=projects/*/locations/*}/certificates\332A\006" - + "parent\022\275\001\n\016GetCertificate\0229.google.cloud" - + ".certificatemanager.v1.GetCertificateReq" - + "uest\032/.google.cloud.certificatemanager.v" - + "1.Certificate\"?\202\323\344\223\0022\0220/v1/{name=project" - + "s/*/locations/*/certificates/*}\332A\004name\022\377" - + "\001\n\021CreateCertificate\022<.google.cloud.cert" - + "ificatemanager.v1.CreateCertificateReque" - + "st\032\035.google.longrunning.Operation\"\214\001\202\323\344\223" - + "\002?\"0/v1/{parent=projects/*/locations/*}/" - + "certificates:\013certificate\332A!parent,certi" - + "ficate,certificate_id\312A \n\013Certificate\022\021O" - + "perationMetadata\022\201\002\n\021UpdateCertificate\022<" - + ".google.cloud.certificatemanager.v1.Upda" - + "teCertificateRequest\032\035.google.longrunnin" - + "g.Operation\"\216\001\202\323\344\223\002K2.google.cloud.certificatemanager." - + "v1.ListCertificateMapsRequest\032?.google.c" - + "loud.certificatemanager.v1.ListCertifica" - + "teMapsResponse\"D\202\323\344\223\0025\0223/v1/{parent=proj" - + "ects/*/locations/*}/certificateMaps\332A\006pa" - + "rent\022\311\001\n\021GetCertificateMap\022<.google.clou" - + "d.certificatemanager.v1.GetCertificateMa" - + "pRequest\0322.google.cloud.certificatemanag" - + "er.v1.CertificateMap\"B\202\323\344\223\0025\0223/v1/{name=" - + "projects/*/locations/*/certificateMaps/*" - + "}\332A\004name\022\227\002\n\024CreateCertificateMap\022?.goog" - + "le.cloud.certificatemanager.v1.CreateCer" - + "tificateMapRequest\032\035.google.longrunning." - + "Operation\"\236\001\202\323\344\223\002F\"3/v1/{parent=projects" - + "/*/locations/*}/certificateMaps:\017certifi" - + "cate_map\332A)parent,certificate_map,certif" - + "icate_map_id\312A#\n\016CertificateMap\022\021Operati" - + "onMetadata\022\231\002\n\024UpdateCertificateMap\022?.go" - + "ogle.cloud.certificatemanager.v1.UpdateC" - + "ertificateMapRequest\032\035.google.longrunnin" - + "g.Operation\"\240\001\202\323\344\223\002V2C/v1/{certificate_m" - + "ap.name=projects/*/locations/*/certifica" - + "teMaps/*}:\017certificate_map\332A\033certificate" - + "_map,update_mask\312A#\n\016CertificateMap\022\021Ope" - + "rationMetadata\022\347\001\n\024DeleteCertificateMap\022" - + "?.google.cloud.certificatemanager.v1.Del" - + "eteCertificateMapRequest\032\035.google.longru" - + "nning.Operation\"o\202\323\344\223\0025*3/v1/{name=proje" - + "cts/*/locations/*/certificateMaps/*}\332A\004n" - + "ame\312A*\n\025google.protobuf.Empty\022\021Operation" - + "Metadata\022\206\002\n\031ListCertificateMapEntries\022D" - + ".google.cloud.certificatemanager.v1.List" - + "CertificateMapEntriesRequest\032E.google.cl" - + "oud.certificatemanager.v1.ListCertificat" - + "eMapEntriesResponse\"\\\202\323\344\223\002M\022K/v1/{parent" - + "=projects/*/locations/*/certificateMaps/" - + "*}/certificateMapEntries\332A\006parent\022\360\001\n\026Ge" - + "tCertificateMapEntry\022A.google.cloud.cert" - + "ificatemanager.v1.GetCertificateMapEntry" - + "Request\0327.google.cloud.certificatemanage" - + "r.v1.CertificateMapEntry\"Z\202\323\344\223\002M\022K/v1/{n" - + "ame=projects/*/locations/*/certificateMa" - + "ps/*/certificateMapEntries/*}\332A\004name\022\320\002\n" - + "\031CreateCertificateMapEntry\022D.google.clou" - + "d.certificatemanager.v1.CreateCertificat" - + "eMapEntryRequest\032\035.google.longrunning.Op" - + "eration\"\315\001\202\323\344\223\002d\"K/v1/{parent=projects/*" - + "/locations/*/certificateMaps/*}/certific" - + "ateMapEntries:\025certificate_map_entry\332A5p" - + "arent,certificate_map_entry,certificate_" - + "map_entry_id\312A(\n\023CertificateMapEntry\022\021Op" - + "erationMetadata\022\322\002\n\031UpdateCertificateMap" - + "Entry\022D.google.cloud.certificatemanager." - + "v1.UpdateCertificateMapEntryRequest\032\035.go" - + "ogle.longrunning.Operation\"\317\001\202\323\344\223\002z2a/v1" - + "/{certificate_map_entry.name=projects/*/" - + "locations/*/certificateMaps/*/certificat" - + "eMapEntries/*}:\025certificate_map_entry\332A!" - + "certificate_map_entry,update_mask\312A(\n\023Ce" - + "rtificateMapEntry\022\021OperationMetadata\022\212\002\n" - + "\031DeleteCertificateMapEntry\022D.google.clou" - + "d.certificatemanager.v1.DeleteCertificat" - + "eMapEntryRequest\032\035.google.longrunning.Op" - + "eration\"\207\001\202\323\344\223\002M*K/v1/{name=projects/*/l" - + "ocations/*/certificateMaps/*/certificate" - + "MapEntries/*}\332A\004name\312A*\n\025google.protobuf" - + ".Empty\022\021OperationMetadata\022\344\001\n\025ListDnsAut" - + "horizations\022@.google.cloud.certificatema" - + "nager.v1.ListDnsAuthorizationsRequest\032A." - + "google.cloud.certificatemanager.v1.ListD" - + "nsAuthorizationsResponse\"F\202\323\344\223\0027\0225/v1/{p" - + "arent=projects/*/locations/*}/dnsAuthori" - + "zations\332A\006parent\022\321\001\n\023GetDnsAuthorization" - + "\022>.google.cloud.certificatemanager.v1.Ge" - + "tDnsAuthorizationRequest\0324.google.cloud." - + "certificatemanager.v1.DnsAuthorization\"D" - + "\202\323\344\223\0027\0225/v1/{name=projects/*/locations/*" - + "/dnsAuthorizations/*}\332A\004name\022\245\002\n\026CreateD" - + "nsAuthorization\022A.google.cloud.certifica" - + "temanager.v1.CreateDnsAuthorizationReque" - + "st\032\035.google.longrunning.Operation\"\250\001\202\323\344\223" - + "\002J\"5/v1/{parent=projects/*/locations/*}/" - + "dnsAuthorizations:\021dns_authorization\332A-p" - + "arent,dns_authorization,dns_authorizatio" - + "n_id\312A%\n\020DnsAuthorization\022\021OperationMeta" - + "data\022\247\002\n\026UpdateDnsAuthorization\022A.google" - + ".cloud.certificatemanager.v1.UpdateDnsAu" - + "thorizationRequest\032\035.google.longrunning." - + "Operation\"\252\001\202\323\344\223\002\\2G/v1/{dns_authorizati" - + "on.name=projects/*/locations/*/dnsAuthor" - + "izations/*}:\021dns_authorization\332A\035dns_aut" - + "horization,update_mask\312A%\n\020DnsAuthorizat" - + "ion\022\021OperationMetadata\022\355\001\n\026DeleteDnsAuth" - + "orization\022A.google.cloud.certificatemana" - + "ger.v1.DeleteDnsAuthorizationRequest\032\035.g" - + "oogle.longrunning.Operation\"q\202\323\344\223\0027*5/v1" - + "/{name=projects/*/locations/*/dnsAuthori" - + "zations/*}\332A\004name\312A*\n\025google.protobuf.Em" - + "pty\022\021OperationMetadata\032U\312A!certificatema" - + "nager.googleapis.com\322A.https://www.googl" - + "eapis.com/auth/cloud-platformB\213\002\n&com.go" - + "ogle.cloud.certificatemanager.v1B\027Certif" - + "icateManagerProtoP\001ZTgoogle.golang.org/g" - + "enproto/googleapis/cloud/certificatemana" - + "ger/v1;certificatemanager\252\002\"Google.Cloud" - + ".CertificateManager.V1\312\002\"Google\\Cloud\\Ce" - + "rtificateManager\\V1\352\002%Google::Cloud::Cer" - + "tificateManager::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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_certificatemanager_v1_ListCertificatesRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_certificatemanager_v1_ListCertificatesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_ListCertificatesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_certificatemanager_v1_ListCertificatesResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_certificatemanager_v1_ListCertificatesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_ListCertificatesResponse_descriptor, - new java.lang.String[] { - "Certificates", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_certificatemanager_v1_GetCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_certificatemanager_v1_GetCertificateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_GetCertificateRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_certificatemanager_v1_CreateCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_certificatemanager_v1_CreateCertificateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_CreateCertificateRequest_descriptor, - new java.lang.String[] { - "Parent", "CertificateId", "Certificate", - }); - internal_static_google_cloud_certificatemanager_v1_UpdateCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_certificatemanager_v1_UpdateCertificateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_UpdateCertificateRequest_descriptor, - new java.lang.String[] { - "Certificate", "UpdateMask", - }); - internal_static_google_cloud_certificatemanager_v1_DeleteCertificateRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_certificatemanager_v1_DeleteCertificateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_DeleteCertificateRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsResponse_descriptor, - new java.lang.String[] { - "CertificateMaps", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_certificatemanager_v1_GetCertificateMapRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_certificatemanager_v1_GetCertificateMapRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_GetCertificateMapRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapRequest_descriptor, - new java.lang.String[] { - "Parent", "CertificateMapId", "CertificateMap", - }); - internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapRequest_descriptor, - new java.lang.String[] { - "CertificateMap", "UpdateMask", - }); - internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesResponse_descriptor, - new java.lang.String[] { - "CertificateMapEntries", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_certificatemanager_v1_GetCertificateMapEntryRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_certificatemanager_v1_GetCertificateMapEntryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_GetCertificateMapEntryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapEntryRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapEntryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapEntryRequest_descriptor, - new java.lang.String[] { - "Parent", "CertificateMapEntryId", "CertificateMapEntry", - }); - internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapEntryRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapEntryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapEntryRequest_descriptor, - new java.lang.String[] { - "CertificateMapEntry", "UpdateMask", - }); - internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapEntryRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapEntryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapEntryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsResponse_descriptor, - new java.lang.String[] { - "DnsAuthorizations", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_certificatemanager_v1_GetDnsAuthorizationRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_certificatemanager_v1_GetDnsAuthorizationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_GetDnsAuthorizationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_certificatemanager_v1_CreateDnsAuthorizationRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_certificatemanager_v1_CreateDnsAuthorizationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_CreateDnsAuthorizationRequest_descriptor, - new java.lang.String[] { - "Parent", "DnsAuthorizationId", "DnsAuthorization", - }); - internal_static_google_cloud_certificatemanager_v1_UpdateDnsAuthorizationRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_certificatemanager_v1_UpdateDnsAuthorizationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_UpdateDnsAuthorizationRequest_descriptor, - new java.lang.String[] { - "DnsAuthorization", "UpdateMask", - }); - internal_static_google_cloud_certificatemanager_v1_DeleteDnsAuthorizationRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_certificatemanager_v1_DeleteDnsAuthorizationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_DeleteDnsAuthorizationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_certificatemanager_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_certificatemanager_v1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusMessage", - "RequestedCancellation", - "ApiVersion", - }); - internal_static_google_cloud_certificatemanager_v1_Certificate_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_certificatemanager_v1_Certificate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_Certificate_descriptor, - new java.lang.String[] { - "Name", - "Description", - "CreateTime", - "UpdateTime", - "Labels", - "SelfManaged", - "Managed", - "SanDnsnames", - "PemCertificate", - "ExpireTime", - "Scope", - "Type", - }); - internal_static_google_cloud_certificatemanager_v1_Certificate_SelfManagedCertificate_descriptor = - internal_static_google_cloud_certificatemanager_v1_Certificate_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_certificatemanager_v1_Certificate_SelfManagedCertificate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_Certificate_SelfManagedCertificate_descriptor, - new java.lang.String[] { - "PemCertificate", "PemPrivateKey", - }); - internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_descriptor = - internal_static_google_cloud_certificatemanager_v1_Certificate_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_descriptor, - new java.lang.String[] { - "Domains", - "DnsAuthorizations", - "State", - "ProvisioningIssue", - "AuthorizationAttemptInfo", - }); - internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_ProvisioningIssue_descriptor = - internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_ProvisioningIssue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_ProvisioningIssue_descriptor, - new java.lang.String[] { - "Reason", "Details", - }); - internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_AuthorizationAttemptInfo_descriptor = - internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_AuthorizationAttemptInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_AuthorizationAttemptInfo_descriptor, - new java.lang.String[] { - "Domain", "State", "FailureReason", "Details", - }); - internal_static_google_cloud_certificatemanager_v1_Certificate_LabelsEntry_descriptor = - internal_static_google_cloud_certificatemanager_v1_Certificate_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_certificatemanager_v1_Certificate_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_Certificate_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_certificatemanager_v1_CertificateMap_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_certificatemanager_v1_CertificateMap_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_CertificateMap_descriptor, - new java.lang.String[] { - "Name", "Description", "CreateTime", "UpdateTime", "Labels", "GclbTargets", - }); - internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_descriptor = - internal_static_google_cloud_certificatemanager_v1_CertificateMap_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_descriptor, - new java.lang.String[] { - "TargetHttpsProxy", "TargetSslProxy", "IpConfigs", "TargetProxy", - }); - internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_IpConfig_descriptor = - internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_IpConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_IpConfig_descriptor, - new java.lang.String[] { - "IpAddress", "Ports", - }); - internal_static_google_cloud_certificatemanager_v1_CertificateMap_LabelsEntry_descriptor = - internal_static_google_cloud_certificatemanager_v1_CertificateMap_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_certificatemanager_v1_CertificateMap_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_CertificateMap_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_descriptor, - new java.lang.String[] { - "Name", - "Description", - "CreateTime", - "UpdateTime", - "Labels", - "Hostname", - "Matcher", - "Certificates", - "State", - "Match", - }); - internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_LabelsEntry_descriptor = - internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_descriptor, - new java.lang.String[] { - "Name", - "CreateTime", - "UpdateTime", - "Labels", - "Description", - "Domain", - "DnsResourceRecord", - }); - internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_DnsResourceRecord_descriptor = - internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_DnsResourceRecord_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_DnsResourceRecord_descriptor, - new java.lang.String[] { - "Name", "Type", "Data", - }); - internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_LabelsEntry_descriptor = - internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapEntryRequestOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapEntryRequestOrBuilder.java deleted file mode 100644 index 3f25d2ef1d6b..000000000000 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapEntryRequestOrBuilder.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/certificatemanager/v1/certificate_manager.proto - -package com.google.cloud.certificatemanager.v1; - -public interface DeleteCertificateMapEntryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. A name of the certificate map entry to delete. Must be in the format
-   * `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. A name of the certificate map entry to delete. Must be in the format
-   * `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapRequestOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapRequestOrBuilder.java deleted file mode 100644 index a7216a2175a4..000000000000 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapRequestOrBuilder.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/certificatemanager/v1/certificate_manager.proto - -package com.google.cloud.certificatemanager.v1; - -public interface DeleteCertificateMapRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.DeleteCertificateMapRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. A name of the certificate map to delete. Must be in the format
-   * `projects/*/locations/*/certificateMaps/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. A name of the certificate map to delete. Must be in the format
-   * `projects/*/locations/*/certificateMaps/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateRequestOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateRequestOrBuilder.java deleted file mode 100644 index a8793846d3b9..000000000000 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateRequestOrBuilder.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/certificatemanager/v1/certificate_manager.proto - -package com.google.cloud.certificatemanager.v1; - -public interface DeleteCertificateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.DeleteCertificateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. A name of the certificate to delete. Must be in the format
-   * `projects/*/locations/*/certificates/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. A name of the certificate to delete. Must be in the format
-   * `projects/*/locations/*/certificates/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteDnsAuthorizationRequestOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteDnsAuthorizationRequestOrBuilder.java deleted file mode 100644 index 84ba26f7872e..000000000000 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteDnsAuthorizationRequestOrBuilder.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/certificatemanager/v1/certificate_manager.proto - -package com.google.cloud.certificatemanager.v1; - -public interface DeleteDnsAuthorizationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. A name of the dns authorization to delete. Must be in the format
-   * `projects/*/locations/*/dnsAuthorizations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. A name of the dns authorization to delete. Must be in the format
-   * `projects/*/locations/*/dnsAuthorizations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapEntryRequestOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapEntryRequestOrBuilder.java deleted file mode 100644 index c92150be745a..000000000000 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapEntryRequestOrBuilder.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/certificatemanager/v1/certificate_manager.proto - -package com.google.cloud.certificatemanager.v1; - -public interface GetCertificateMapEntryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. A name of the certificate map entry to describe. Must be in the
-   * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. A name of the certificate map entry to describe. Must be in the
-   * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapRequestOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapRequestOrBuilder.java deleted file mode 100644 index 7031a2cd1e37..000000000000 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapRequestOrBuilder.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/certificatemanager/v1/certificate_manager.proto - -package com.google.cloud.certificatemanager.v1; - -public interface GetCertificateMapRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.GetCertificateMapRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. A name of the certificate map to describe. Must be in the format
-   * `projects/*/locations/*/certificateMaps/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. A name of the certificate map to describe. Must be in the format
-   * `projects/*/locations/*/certificateMaps/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateRequestOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateRequestOrBuilder.java deleted file mode 100644 index 36f7ef8f9d24..000000000000 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateRequestOrBuilder.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/certificatemanager/v1/certificate_manager.proto - -package com.google.cloud.certificatemanager.v1; - -public interface GetCertificateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.GetCertificateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. A name of the certificate to describe. Must be in the format
-   * `projects/*/locations/*/certificates/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. A name of the certificate to describe. Must be in the format
-   * `projects/*/locations/*/certificates/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetDnsAuthorizationRequestOrBuilder.java b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetDnsAuthorizationRequestOrBuilder.java deleted file mode 100644 index 180ac93cd78b..000000000000 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetDnsAuthorizationRequestOrBuilder.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/certificatemanager/v1/certificate_manager.proto - -package com.google.cloud.certificatemanager.v1; - -public interface GetDnsAuthorizationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. A name of the dns authorization to describe. Must be in the format
-   * `projects/*/locations/*/dnsAuthorizations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. A name of the dns authorization to describe. Must be in the format
-   * `projects/*/locations/*/dnsAuthorizations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerClient.java b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerClient.java similarity index 82% rename from java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerClient.java rename to owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerClient.java index bad64adfa3f6..b411df3aafbd 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerClient.java +++ b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerClient.java @@ -3250,6 +3250,672 @@ public final OperationFuture deleteDnsAuthorizationAsy return stub.deleteDnsAuthorizationCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CertificateIssuanceConfigs in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (CertificateIssuanceConfig element :
+   *       certificateManagerClient.listCertificateIssuanceConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The project and location from which the certificate should be listed, + * specified in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCertificateIssuanceConfigsPagedResponse listCertificateIssuanceConfigs( + LocationName parent) { + ListCertificateIssuanceConfigsRequest request = + ListCertificateIssuanceConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCertificateIssuanceConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CertificateIssuanceConfigs in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (CertificateIssuanceConfig element :
+   *       certificateManagerClient.listCertificateIssuanceConfigs(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The project and location from which the certificate should be listed, + * specified in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCertificateIssuanceConfigsPagedResponse listCertificateIssuanceConfigs( + String parent) { + ListCertificateIssuanceConfigsRequest request = + ListCertificateIssuanceConfigsRequest.newBuilder().setParent(parent).build(); + return listCertificateIssuanceConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CertificateIssuanceConfigs in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   ListCertificateIssuanceConfigsRequest request =
+   *       ListCertificateIssuanceConfigsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (CertificateIssuanceConfig element :
+   *       certificateManagerClient.listCertificateIssuanceConfigs(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCertificateIssuanceConfigsPagedResponse listCertificateIssuanceConfigs( + ListCertificateIssuanceConfigsRequest request) { + return listCertificateIssuanceConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CertificateIssuanceConfigs in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   ListCertificateIssuanceConfigsRequest request =
+   *       ListCertificateIssuanceConfigsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       certificateManagerClient
+   *           .listCertificateIssuanceConfigsPagedCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   for (CertificateIssuanceConfig element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsPagedCallable() { + return stub.listCertificateIssuanceConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CertificateIssuanceConfigs in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   ListCertificateIssuanceConfigsRequest request =
+   *       ListCertificateIssuanceConfigsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListCertificateIssuanceConfigsResponse response =
+   *         certificateManagerClient.listCertificateIssuanceConfigsCallable().call(request);
+   *     for (CertificateIssuanceConfig element : response.getCertificateIssuanceConfigsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse> + listCertificateIssuanceConfigsCallable() { + return stub.listCertificateIssuanceConfigsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single CertificateIssuanceConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   CertificateIssuanceConfigName name =
+   *       CertificateIssuanceConfigName.of(
+   *           "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]");
+   *   CertificateIssuanceConfig response =
+   *       certificateManagerClient.getCertificateIssuanceConfig(name);
+   * }
+   * }
+ * + * @param name Required. A name of the certificate issuance config to describe. Must be in the + * format `projects/*/locations/*/certificateIssuanceConfigs/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CertificateIssuanceConfig getCertificateIssuanceConfig( + CertificateIssuanceConfigName name) { + GetCertificateIssuanceConfigRequest request = + GetCertificateIssuanceConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getCertificateIssuanceConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single CertificateIssuanceConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   String name =
+   *       CertificateIssuanceConfigName.of(
+   *               "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]")
+   *           .toString();
+   *   CertificateIssuanceConfig response =
+   *       certificateManagerClient.getCertificateIssuanceConfig(name);
+   * }
+   * }
+ * + * @param name Required. A name of the certificate issuance config to describe. Must be in the + * format `projects/*/locations/*/certificateIssuanceConfigs/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CertificateIssuanceConfig getCertificateIssuanceConfig(String name) { + GetCertificateIssuanceConfigRequest request = + GetCertificateIssuanceConfigRequest.newBuilder().setName(name).build(); + return getCertificateIssuanceConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single CertificateIssuanceConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   GetCertificateIssuanceConfigRequest request =
+   *       GetCertificateIssuanceConfigRequest.newBuilder()
+   *           .setName(
+   *               CertificateIssuanceConfigName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   CertificateIssuanceConfig response =
+   *       certificateManagerClient.getCertificateIssuanceConfig(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CertificateIssuanceConfig getCertificateIssuanceConfig( + GetCertificateIssuanceConfigRequest request) { + return getCertificateIssuanceConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single CertificateIssuanceConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   GetCertificateIssuanceConfigRequest request =
+   *       GetCertificateIssuanceConfigRequest.newBuilder()
+   *           .setName(
+   *               CertificateIssuanceConfigName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       certificateManagerClient.getCertificateIssuanceConfigCallable().futureCall(request);
+   *   // Do something.
+   *   CertificateIssuanceConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getCertificateIssuanceConfigCallable() { + return stub.getCertificateIssuanceConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new CertificateIssuanceConfig in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   CertificateIssuanceConfig certificateIssuanceConfig =
+   *       CertificateIssuanceConfig.newBuilder().build();
+   *   String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023";
+   *   CertificateIssuanceConfig response =
+   *       certificateManagerClient
+   *           .createCertificateIssuanceConfigAsync(
+   *               parent, certificateIssuanceConfig, certificateIssuanceConfigId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource of the certificate issuance config. Must be in the + * format `projects/*/locations/*`. + * @param certificateIssuanceConfig Required. A definition of the certificate issuance config to + * create. + * @param certificateIssuanceConfigId Required. A user-provided name of the certificate config. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createCertificateIssuanceConfigAsync( + LocationName parent, + CertificateIssuanceConfig certificateIssuanceConfig, + String certificateIssuanceConfigId) { + CreateCertificateIssuanceConfigRequest request = + CreateCertificateIssuanceConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCertificateIssuanceConfig(certificateIssuanceConfig) + .setCertificateIssuanceConfigId(certificateIssuanceConfigId) + .build(); + return createCertificateIssuanceConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new CertificateIssuanceConfig in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   CertificateIssuanceConfig certificateIssuanceConfig =
+   *       CertificateIssuanceConfig.newBuilder().build();
+   *   String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023";
+   *   CertificateIssuanceConfig response =
+   *       certificateManagerClient
+   *           .createCertificateIssuanceConfigAsync(
+   *               parent, certificateIssuanceConfig, certificateIssuanceConfigId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource of the certificate issuance config. Must be in the + * format `projects/*/locations/*`. + * @param certificateIssuanceConfig Required. A definition of the certificate issuance config to + * create. + * @param certificateIssuanceConfigId Required. A user-provided name of the certificate config. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createCertificateIssuanceConfigAsync( + String parent, + CertificateIssuanceConfig certificateIssuanceConfig, + String certificateIssuanceConfigId) { + CreateCertificateIssuanceConfigRequest request = + CreateCertificateIssuanceConfigRequest.newBuilder() + .setParent(parent) + .setCertificateIssuanceConfig(certificateIssuanceConfig) + .setCertificateIssuanceConfigId(certificateIssuanceConfigId) + .build(); + return createCertificateIssuanceConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new CertificateIssuanceConfig in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   CreateCertificateIssuanceConfigRequest request =
+   *       CreateCertificateIssuanceConfigRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setCertificateIssuanceConfigId("certificateIssuanceConfigId1910303023")
+   *           .setCertificateIssuanceConfig(CertificateIssuanceConfig.newBuilder().build())
+   *           .build();
+   *   CertificateIssuanceConfig response =
+   *       certificateManagerClient.createCertificateIssuanceConfigAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createCertificateIssuanceConfigAsync(CreateCertificateIssuanceConfigRequest request) { + return createCertificateIssuanceConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new CertificateIssuanceConfig in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   CreateCertificateIssuanceConfigRequest request =
+   *       CreateCertificateIssuanceConfigRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setCertificateIssuanceConfigId("certificateIssuanceConfigId1910303023")
+   *           .setCertificateIssuanceConfig(CertificateIssuanceConfig.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       certificateManagerClient
+   *           .createCertificateIssuanceConfigOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   CertificateIssuanceConfig response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationCallable() { + return stub.createCertificateIssuanceConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new CertificateIssuanceConfig in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   CreateCertificateIssuanceConfigRequest request =
+   *       CreateCertificateIssuanceConfigRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setCertificateIssuanceConfigId("certificateIssuanceConfigId1910303023")
+   *           .setCertificateIssuanceConfig(CertificateIssuanceConfig.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       certificateManagerClient.createCertificateIssuanceConfigCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createCertificateIssuanceConfigCallable() { + return stub.createCertificateIssuanceConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single CertificateIssuanceConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   CertificateIssuanceConfigName name =
+   *       CertificateIssuanceConfigName.of(
+   *           "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]");
+   *   certificateManagerClient.deleteCertificateIssuanceConfigAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. A name of the certificate issuance config to delete. Must be in the + * format `projects/*/locations/*/certificateIssuanceConfigs/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCertificateIssuanceConfigAsync( + CertificateIssuanceConfigName name) { + DeleteCertificateIssuanceConfigRequest request = + DeleteCertificateIssuanceConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteCertificateIssuanceConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single CertificateIssuanceConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   String name =
+   *       CertificateIssuanceConfigName.of(
+   *               "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]")
+   *           .toString();
+   *   certificateManagerClient.deleteCertificateIssuanceConfigAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. A name of the certificate issuance config to delete. Must be in the + * format `projects/*/locations/*/certificateIssuanceConfigs/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCertificateIssuanceConfigAsync( + String name) { + DeleteCertificateIssuanceConfigRequest request = + DeleteCertificateIssuanceConfigRequest.newBuilder().setName(name).build(); + return deleteCertificateIssuanceConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single CertificateIssuanceConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   DeleteCertificateIssuanceConfigRequest request =
+   *       DeleteCertificateIssuanceConfigRequest.newBuilder()
+   *           .setName(
+   *               CertificateIssuanceConfigName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   certificateManagerClient.deleteCertificateIssuanceConfigAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCertificateIssuanceConfigAsync( + DeleteCertificateIssuanceConfigRequest request) { + return deleteCertificateIssuanceConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single CertificateIssuanceConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   DeleteCertificateIssuanceConfigRequest request =
+   *       DeleteCertificateIssuanceConfigRequest.newBuilder()
+   *           .setName(
+   *               CertificateIssuanceConfigName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       certificateManagerClient
+   *           .deleteCertificateIssuanceConfigOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteCertificateIssuanceConfigOperationCallable() { + return stub.deleteCertificateIssuanceConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single CertificateIssuanceConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) {
+   *   DeleteCertificateIssuanceConfigRequest request =
+   *       DeleteCertificateIssuanceConfigRequest.newBuilder()
+   *           .setName(
+   *               CertificateIssuanceConfigName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       certificateManagerClient.deleteCertificateIssuanceConfigCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteCertificateIssuanceConfigCallable() { + return stub.deleteCertificateIssuanceConfigCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. @@ -3778,6 +4444,103 @@ protected ListDnsAuthorizationsFixedSizeCollection createCollection( } } + public static class ListCertificateIssuanceConfigsPagedResponse + extends AbstractPagedListResponse< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + CertificateIssuanceConfig, + ListCertificateIssuanceConfigsPage, + ListCertificateIssuanceConfigsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + CertificateIssuanceConfig> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListCertificateIssuanceConfigsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListCertificateIssuanceConfigsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListCertificateIssuanceConfigsPagedResponse(ListCertificateIssuanceConfigsPage page) { + super(page, ListCertificateIssuanceConfigsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListCertificateIssuanceConfigsPage + extends AbstractPage< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + CertificateIssuanceConfig, + ListCertificateIssuanceConfigsPage> { + + private ListCertificateIssuanceConfigsPage( + PageContext< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + CertificateIssuanceConfig> + context, + ListCertificateIssuanceConfigsResponse response) { + super(context, response); + } + + private static ListCertificateIssuanceConfigsPage createEmptyPage() { + return new ListCertificateIssuanceConfigsPage(null, null); + } + + @Override + protected ListCertificateIssuanceConfigsPage createPage( + PageContext< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + CertificateIssuanceConfig> + context, + ListCertificateIssuanceConfigsResponse response) { + return new ListCertificateIssuanceConfigsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + CertificateIssuanceConfig> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListCertificateIssuanceConfigsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + CertificateIssuanceConfig, + ListCertificateIssuanceConfigsPage, + ListCertificateIssuanceConfigsFixedSizeCollection> { + + private ListCertificateIssuanceConfigsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListCertificateIssuanceConfigsFixedSizeCollection createEmptyCollection() { + return new ListCertificateIssuanceConfigsFixedSizeCollection(null, 0); + } + + @Override + protected ListCertificateIssuanceConfigsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListCertificateIssuanceConfigsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListLocationsPagedResponse extends AbstractPagedListResponse< ListLocationsRequest, diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerSettings.java b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerSettings.java similarity index 86% rename from java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerSettings.java rename to owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerSettings.java index f98d853e2c78..7864f09f7b57 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerSettings.java +++ b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerSettings.java @@ -16,6 +16,7 @@ package com.google.cloud.certificatemanager.v1; +import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateIssuanceConfigsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapEntriesPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificatesPagedResponse; @@ -33,6 +34,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.certificatemanager.v1.stub.CertificateManagerStubSettings; @@ -294,6 +296,52 @@ public UnaryCallSettings deleteCertifica .deleteDnsAuthorizationOperationSettings(); } + /** Returns the object with the settings used for calls to listCertificateIssuanceConfigs. */ + public PagedCallSettings< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsSettings() { + return ((CertificateManagerStubSettings) getStubSettings()) + .listCertificateIssuanceConfigsSettings(); + } + + /** Returns the object with the settings used for calls to getCertificateIssuanceConfig. */ + public UnaryCallSettings + getCertificateIssuanceConfigSettings() { + return ((CertificateManagerStubSettings) getStubSettings()) + .getCertificateIssuanceConfigSettings(); + } + + /** Returns the object with the settings used for calls to createCertificateIssuanceConfig. */ + public UnaryCallSettings + createCertificateIssuanceConfigSettings() { + return ((CertificateManagerStubSettings) getStubSettings()) + .createCertificateIssuanceConfigSettings(); + } + + /** Returns the object with the settings used for calls to createCertificateIssuanceConfig. */ + public OperationCallSettings< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationSettings() { + return ((CertificateManagerStubSettings) getStubSettings()) + .createCertificateIssuanceConfigOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteCertificateIssuanceConfig. */ + public UnaryCallSettings + deleteCertificateIssuanceConfigSettings() { + return ((CertificateManagerStubSettings) getStubSettings()) + .deleteCertificateIssuanceConfigSettings(); + } + + /** Returns the object with the settings used for calls to deleteCertificateIssuanceConfig. */ + public OperationCallSettings + deleteCertificateIssuanceConfigOperationSettings() { + return ((CertificateManagerStubSettings) getStubSettings()) + .deleteCertificateIssuanceConfigOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -627,6 +675,47 @@ public UnaryCallSettings.Builder getCertific return getStubSettingsBuilder().deleteDnsAuthorizationOperationSettings(); } + /** Returns the builder for the settings used for calls to listCertificateIssuanceConfigs. */ + public PagedCallSettings.Builder< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsSettings() { + return getStubSettingsBuilder().listCertificateIssuanceConfigsSettings(); + } + + /** Returns the builder for the settings used for calls to getCertificateIssuanceConfig. */ + public UnaryCallSettings.Builder + getCertificateIssuanceConfigSettings() { + return getStubSettingsBuilder().getCertificateIssuanceConfigSettings(); + } + + /** Returns the builder for the settings used for calls to createCertificateIssuanceConfig. */ + public UnaryCallSettings.Builder + createCertificateIssuanceConfigSettings() { + return getStubSettingsBuilder().createCertificateIssuanceConfigSettings(); + } + + /** Returns the builder for the settings used for calls to createCertificateIssuanceConfig. */ + public OperationCallSettings.Builder< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationSettings() { + return getStubSettingsBuilder().createCertificateIssuanceConfigOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCertificateIssuanceConfig. */ + public UnaryCallSettings.Builder + deleteCertificateIssuanceConfigSettings() { + return getStubSettingsBuilder().deleteCertificateIssuanceConfigSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCertificateIssuanceConfig. */ + public OperationCallSettings.Builder< + DeleteCertificateIssuanceConfigRequest, Empty, OperationMetadata> + deleteCertificateIssuanceConfigOperationSettings() { + return getStubSettingsBuilder().deleteCertificateIssuanceConfigOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/gapic_metadata.json b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/gapic_metadata.json similarity index 82% rename from java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/gapic_metadata.json rename to owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/gapic_metadata.json index 66298393c61f..6545d0f0db7c 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/gapic_metadata.json +++ b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/gapic_metadata.json @@ -13,6 +13,9 @@ "CreateCertificate": { "methods": ["createCertificateAsync", "createCertificateAsync", "createCertificateAsync", "createCertificateOperationCallable", "createCertificateCallable"] }, + "CreateCertificateIssuanceConfig": { + "methods": ["createCertificateIssuanceConfigAsync", "createCertificateIssuanceConfigAsync", "createCertificateIssuanceConfigAsync", "createCertificateIssuanceConfigOperationCallable", "createCertificateIssuanceConfigCallable"] + }, "CreateCertificateMap": { "methods": ["createCertificateMapAsync", "createCertificateMapAsync", "createCertificateMapAsync", "createCertificateMapOperationCallable", "createCertificateMapCallable"] }, @@ -25,6 +28,9 @@ "DeleteCertificate": { "methods": ["deleteCertificateAsync", "deleteCertificateAsync", "deleteCertificateAsync", "deleteCertificateOperationCallable", "deleteCertificateCallable"] }, + "DeleteCertificateIssuanceConfig": { + "methods": ["deleteCertificateIssuanceConfigAsync", "deleteCertificateIssuanceConfigAsync", "deleteCertificateIssuanceConfigAsync", "deleteCertificateIssuanceConfigOperationCallable", "deleteCertificateIssuanceConfigCallable"] + }, "DeleteCertificateMap": { "methods": ["deleteCertificateMapAsync", "deleteCertificateMapAsync", "deleteCertificateMapAsync", "deleteCertificateMapOperationCallable", "deleteCertificateMapCallable"] }, @@ -37,6 +43,9 @@ "GetCertificate": { "methods": ["getCertificate", "getCertificate", "getCertificate", "getCertificateCallable"] }, + "GetCertificateIssuanceConfig": { + "methods": ["getCertificateIssuanceConfig", "getCertificateIssuanceConfig", "getCertificateIssuanceConfig", "getCertificateIssuanceConfigCallable"] + }, "GetCertificateMap": { "methods": ["getCertificateMap", "getCertificateMap", "getCertificateMap", "getCertificateMapCallable"] }, @@ -49,6 +58,9 @@ "GetLocation": { "methods": ["getLocation", "getLocationCallable"] }, + "ListCertificateIssuanceConfigs": { + "methods": ["listCertificateIssuanceConfigs", "listCertificateIssuanceConfigs", "listCertificateIssuanceConfigs", "listCertificateIssuanceConfigsPagedCallable", "listCertificateIssuanceConfigsCallable"] + }, "ListCertificateMapEntries": { "methods": ["listCertificateMapEntries", "listCertificateMapEntries", "listCertificateMapEntries", "listCertificateMapEntriesPagedCallable", "listCertificateMapEntriesCallable"] }, diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/package-info.java b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/package-info.java similarity index 100% rename from java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/package-info.java rename to owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/package-info.java diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStub.java b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStub.java similarity index 83% rename from java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStub.java rename to owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStub.java index e7f827b5415b..063d49844004 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStub.java +++ b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStub.java @@ -16,6 +16,7 @@ package com.google.cloud.certificatemanager.v1.stub; +import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateIssuanceConfigsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapEntriesPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificatesPagedResponse; @@ -26,21 +27,27 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.certificatemanager.v1.Certificate; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; import com.google.cloud.certificatemanager.v1.CertificateMap; import com.google.cloud.certificatemanager.v1.CertificateMapEntry; +import com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateRequest; import com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest; +import com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateRequest; import com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest; import com.google.cloud.certificatemanager.v1.DnsAuthorization; +import com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.GetCertificateMapRequest; import com.google.cloud.certificatemanager.v1.GetCertificateRequest; import com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse; import com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest; import com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse; import com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest; @@ -262,6 +269,51 @@ public UnaryCallable deleteDnsAuthoriz throw new UnsupportedOperationException("Not implemented: deleteDnsAuthorizationCallable()"); } + public UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listCertificateIssuanceConfigsPagedCallable()"); + } + + public UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse> + listCertificateIssuanceConfigsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listCertificateIssuanceConfigsCallable()"); + } + + public UnaryCallable + getCertificateIssuanceConfigCallable() { + throw new UnsupportedOperationException( + "Not implemented: getCertificateIssuanceConfigCallable()"); + } + + public OperationCallable< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createCertificateIssuanceConfigOperationCallable()"); + } + + public UnaryCallable + createCertificateIssuanceConfigCallable() { + throw new UnsupportedOperationException( + "Not implemented: createCertificateIssuanceConfigCallable()"); + } + + public OperationCallable + deleteCertificateIssuanceConfigOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteCertificateIssuanceConfigOperationCallable()"); + } + + public UnaryCallable + deleteCertificateIssuanceConfigCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteCertificateIssuanceConfigCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStubSettings.java b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStubSettings.java similarity index 84% rename from java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStubSettings.java rename to owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStubSettings.java index fae1d85db232..0b5e3adc5bc0 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStubSettings.java +++ b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/CertificateManagerStubSettings.java @@ -16,6 +16,7 @@ package com.google.cloud.certificatemanager.v1.stub; +import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateIssuanceConfigsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapEntriesPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificatesPagedResponse; @@ -52,21 +53,27 @@ import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.certificatemanager.v1.Certificate; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; import com.google.cloud.certificatemanager.v1.CertificateMap; import com.google.cloud.certificatemanager.v1.CertificateMapEntry; +import com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateRequest; import com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest; +import com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateRequest; import com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest; import com.google.cloud.certificatemanager.v1.DnsAuthorization; +import com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.GetCertificateMapRequest; import com.google.cloud.certificatemanager.v1.GetCertificateRequest; import com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse; import com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest; import com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse; import com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest; @@ -214,6 +221,23 @@ public class CertificateManagerStubSettings extends StubSettings deleteDnsAuthorizationOperationSettings; + private final PagedCallSettings< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsSettings; + private final UnaryCallSettings + getCertificateIssuanceConfigSettings; + private final UnaryCallSettings + createCertificateIssuanceConfigSettings; + private final OperationCallSettings< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationSettings; + private final UnaryCallSettings + deleteCertificateIssuanceConfigSettings; + private final OperationCallSettings< + DeleteCertificateIssuanceConfigRequest, Empty, OperationMetadata> + deleteCertificateIssuanceConfigOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -387,6 +411,55 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + CertificateIssuanceConfig> + LIST_CERTIFICATE_ISSUANCE_CONFIGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + CertificateIssuanceConfig>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListCertificateIssuanceConfigsRequest injectToken( + ListCertificateIssuanceConfigsRequest payload, String token) { + return ListCertificateIssuanceConfigsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListCertificateIssuanceConfigsRequest injectPageSize( + ListCertificateIssuanceConfigsRequest payload, int pageSize) { + return ListCertificateIssuanceConfigsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListCertificateIssuanceConfigsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListCertificateIssuanceConfigsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListCertificateIssuanceConfigsResponse payload) { + return payload.getCertificateIssuanceConfigsList() == null + ? ImmutableList.of() + : payload.getCertificateIssuanceConfigsList(); + } + }; + private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -515,6 +588,39 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + ListCertificateIssuanceConfigsPagedResponse> + LIST_CERTIFICATE_ISSUANCE_CONFIGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + ListCertificateIssuanceConfigsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse> + callable, + ListCertificateIssuanceConfigsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + CertificateIssuanceConfig> + pageContext = + PageContext.create( + callable, + LIST_CERTIFICATE_ISSUANCE_CONFIGS_PAGE_STR_DESC, + request, + context); + return ListCertificateIssuanceConfigsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = @@ -726,6 +832,46 @@ public UnaryCallSettings deleteCertifica return deleteDnsAuthorizationOperationSettings; } + /** Returns the object with the settings used for calls to listCertificateIssuanceConfigs. */ + public PagedCallSettings< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsSettings() { + return listCertificateIssuanceConfigsSettings; + } + + /** Returns the object with the settings used for calls to getCertificateIssuanceConfig. */ + public UnaryCallSettings + getCertificateIssuanceConfigSettings() { + return getCertificateIssuanceConfigSettings; + } + + /** Returns the object with the settings used for calls to createCertificateIssuanceConfig. */ + public UnaryCallSettings + createCertificateIssuanceConfigSettings() { + return createCertificateIssuanceConfigSettings; + } + + /** Returns the object with the settings used for calls to createCertificateIssuanceConfig. */ + public OperationCallSettings< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationSettings() { + return createCertificateIssuanceConfigOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteCertificateIssuanceConfig. */ + public UnaryCallSettings + deleteCertificateIssuanceConfigSettings() { + return deleteCertificateIssuanceConfigSettings; + } + + /** Returns the object with the settings used for calls to deleteCertificateIssuanceConfig. */ + public OperationCallSettings + deleteCertificateIssuanceConfigOperationSettings() { + return deleteCertificateIssuanceConfigOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -887,6 +1033,18 @@ protected CertificateManagerStubSettings(Builder settingsBuilder) throws IOExcep deleteDnsAuthorizationSettings = settingsBuilder.deleteDnsAuthorizationSettings().build(); deleteDnsAuthorizationOperationSettings = settingsBuilder.deleteDnsAuthorizationOperationSettings().build(); + listCertificateIssuanceConfigsSettings = + settingsBuilder.listCertificateIssuanceConfigsSettings().build(); + getCertificateIssuanceConfigSettings = + settingsBuilder.getCertificateIssuanceConfigSettings().build(); + createCertificateIssuanceConfigSettings = + settingsBuilder.createCertificateIssuanceConfigSettings().build(); + createCertificateIssuanceConfigOperationSettings = + settingsBuilder.createCertificateIssuanceConfigOperationSettings().build(); + deleteCertificateIssuanceConfigSettings = + settingsBuilder.deleteCertificateIssuanceConfigSettings().build(); + deleteCertificateIssuanceConfigOperationSettings = + settingsBuilder.deleteCertificateIssuanceConfigOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -980,6 +1138,24 @@ public static class Builder private final OperationCallSettings.Builder< DeleteDnsAuthorizationRequest, Empty, OperationMetadata> deleteDnsAuthorizationOperationSettings; + private final PagedCallSettings.Builder< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsSettings; + private final UnaryCallSettings.Builder< + GetCertificateIssuanceConfigRequest, CertificateIssuanceConfig> + getCertificateIssuanceConfigSettings; + private final UnaryCallSettings.Builder + createCertificateIssuanceConfigSettings; + private final OperationCallSettings.Builder< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationSettings; + private final UnaryCallSettings.Builder + deleteCertificateIssuanceConfigSettings; + private final OperationCallSettings.Builder< + DeleteCertificateIssuanceConfigRequest, Empty, OperationMetadata> + deleteCertificateIssuanceConfigOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -1060,6 +1236,13 @@ protected Builder(ClientContext clientContext) { updateDnsAuthorizationOperationSettings = OperationCallSettings.newBuilder(); deleteDnsAuthorizationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteDnsAuthorizationOperationSettings = OperationCallSettings.newBuilder(); + listCertificateIssuanceConfigsSettings = + PagedCallSettings.newBuilder(LIST_CERTIFICATE_ISSUANCE_CONFIGS_PAGE_STR_FACT); + getCertificateIssuanceConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createCertificateIssuanceConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createCertificateIssuanceConfigOperationSettings = OperationCallSettings.newBuilder(); + deleteCertificateIssuanceConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteCertificateIssuanceConfigOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1085,6 +1268,10 @@ protected Builder(ClientContext clientContext) { createDnsAuthorizationSettings, updateDnsAuthorizationSettings, deleteDnsAuthorizationSettings, + listCertificateIssuanceConfigsSettings, + getCertificateIssuanceConfigSettings, + createCertificateIssuanceConfigSettings, + deleteCertificateIssuanceConfigSettings, listLocationsSettings, getLocationSettings); initDefaults(this); @@ -1134,6 +1321,18 @@ protected Builder(CertificateManagerStubSettings settings) { deleteDnsAuthorizationSettings = settings.deleteDnsAuthorizationSettings.toBuilder(); deleteDnsAuthorizationOperationSettings = settings.deleteDnsAuthorizationOperationSettings.toBuilder(); + listCertificateIssuanceConfigsSettings = + settings.listCertificateIssuanceConfigsSettings.toBuilder(); + getCertificateIssuanceConfigSettings = + settings.getCertificateIssuanceConfigSettings.toBuilder(); + createCertificateIssuanceConfigSettings = + settings.createCertificateIssuanceConfigSettings.toBuilder(); + createCertificateIssuanceConfigOperationSettings = + settings.createCertificateIssuanceConfigOperationSettings.toBuilder(); + deleteCertificateIssuanceConfigSettings = + settings.deleteCertificateIssuanceConfigSettings.toBuilder(); + deleteCertificateIssuanceConfigOperationSettings = + settings.deleteCertificateIssuanceConfigOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); @@ -1159,6 +1358,10 @@ protected Builder(CertificateManagerStubSettings settings) { createDnsAuthorizationSettings, updateDnsAuthorizationSettings, deleteDnsAuthorizationSettings, + listCertificateIssuanceConfigsSettings, + getCertificateIssuanceConfigSettings, + createCertificateIssuanceConfigSettings, + deleteCertificateIssuanceConfigSettings, listLocationsSettings, getLocationSettings); } @@ -1290,6 +1493,26 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .listCertificateIssuanceConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getCertificateIssuanceConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createCertificateIssuanceConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteCertificateIssuanceConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -1591,6 +1814,57 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .createCertificateIssuanceConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + CertificateIssuanceConfig.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteCertificateIssuanceConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -1840,6 +2114,51 @@ public UnaryCallSettings.Builder getCertific return deleteDnsAuthorizationOperationSettings; } + /** Returns the builder for the settings used for calls to listCertificateIssuanceConfigs. */ + public PagedCallSettings.Builder< + ListCertificateIssuanceConfigsRequest, + ListCertificateIssuanceConfigsResponse, + ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsSettings() { + return listCertificateIssuanceConfigsSettings; + } + + /** Returns the builder for the settings used for calls to getCertificateIssuanceConfig. */ + public UnaryCallSettings.Builder + getCertificateIssuanceConfigSettings() { + return getCertificateIssuanceConfigSettings; + } + + /** Returns the builder for the settings used for calls to createCertificateIssuanceConfig. */ + public UnaryCallSettings.Builder + createCertificateIssuanceConfigSettings() { + return createCertificateIssuanceConfigSettings; + } + + /** Returns the builder for the settings used for calls to createCertificateIssuanceConfig. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationSettings() { + return createCertificateIssuanceConfigOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteCertificateIssuanceConfig. */ + public UnaryCallSettings.Builder + deleteCertificateIssuanceConfigSettings() { + return deleteCertificateIssuanceConfigSettings; + } + + /** Returns the builder for the settings used for calls to deleteCertificateIssuanceConfig. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + DeleteCertificateIssuanceConfigRequest, Empty, OperationMetadata> + deleteCertificateIssuanceConfigOperationSettings() { + return deleteCertificateIssuanceConfigOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/GrpcCertificateManagerCallableFactory.java b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/GrpcCertificateManagerCallableFactory.java similarity index 100% rename from java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/GrpcCertificateManagerCallableFactory.java rename to owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/GrpcCertificateManagerCallableFactory.java diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/GrpcCertificateManagerStub.java b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/GrpcCertificateManagerStub.java similarity index 83% rename from java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/GrpcCertificateManagerStub.java rename to owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/GrpcCertificateManagerStub.java index 8a9cf1450faa..79825d9d3548 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/GrpcCertificateManagerStub.java +++ b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/GrpcCertificateManagerStub.java @@ -16,6 +16,7 @@ package com.google.cloud.certificatemanager.v1.stub; +import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateIssuanceConfigsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapEntriesPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificatesPagedResponse; @@ -30,21 +31,27 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.certificatemanager.v1.Certificate; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; import com.google.cloud.certificatemanager.v1.CertificateMap; import com.google.cloud.certificatemanager.v1.CertificateMapEntry; +import com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateRequest; import com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest; +import com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateRequest; import com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest; import com.google.cloud.certificatemanager.v1.DnsAuthorization; +import com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.GetCertificateMapRequest; import com.google.cloud.certificatemanager.v1.GetCertificateRequest; import com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse; import com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest; import com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse; import com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest; @@ -69,6 +76,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; @@ -307,6 +315,60 @@ public class GrpcCertificateManagerStub extends CertificateManagerStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse> + listCertificateIssuanceConfigsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.certificatemanager.v1.CertificateManager/ListCertificateIssuanceConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListCertificateIssuanceConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListCertificateIssuanceConfigsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + GetCertificateIssuanceConfigRequest, CertificateIssuanceConfig> + getCertificateIssuanceConfigMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.certificatemanager.v1.CertificateManager/GetCertificateIssuanceConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetCertificateIssuanceConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CertificateIssuanceConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createCertificateIssuanceConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.certificatemanager.v1.CertificateManager/CreateCertificateIssuanceConfig") + .setRequestMarshaller( + ProtoUtils.marshaller( + CreateCertificateIssuanceConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteCertificateIssuanceConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.certificatemanager.v1.CertificateManager/DeleteCertificateIssuanceConfig") + .setRequestMarshaller( + ProtoUtils.marshaller( + DeleteCertificateIssuanceConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -395,6 +457,23 @@ public class GrpcCertificateManagerStub extends CertificateManagerStub { deleteDnsAuthorizationCallable; private final OperationCallable deleteDnsAuthorizationOperationCallable; + private final UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse> + listCertificateIssuanceConfigsCallable; + private final UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsPagedCallable; + private final UnaryCallable + getCertificateIssuanceConfigCallable; + private final UnaryCallable + createCertificateIssuanceConfigCallable; + private final OperationCallable< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationCallable; + private final UnaryCallable + deleteCertificateIssuanceConfigCallable; + private final OperationCallable + deleteCertificateIssuanceConfigOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -665,6 +744,53 @@ protected GrpcCertificateManagerStub( return params.build(); }) .build(); + GrpcCallSettings + listCertificateIssuanceConfigsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listCertificateIssuanceConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + getCertificateIssuanceConfigTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getCertificateIssuanceConfigMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + createCertificateIssuanceConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createCertificateIssuanceConfigMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + deleteCertificateIssuanceConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteCertificateIssuanceConfigMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -872,6 +998,43 @@ protected GrpcCertificateManagerStub( settings.deleteDnsAuthorizationOperationSettings(), clientContext, operationsStub); + this.listCertificateIssuanceConfigsCallable = + callableFactory.createUnaryCallable( + listCertificateIssuanceConfigsTransportSettings, + settings.listCertificateIssuanceConfigsSettings(), + clientContext); + this.listCertificateIssuanceConfigsPagedCallable = + callableFactory.createPagedCallable( + listCertificateIssuanceConfigsTransportSettings, + settings.listCertificateIssuanceConfigsSettings(), + clientContext); + this.getCertificateIssuanceConfigCallable = + callableFactory.createUnaryCallable( + getCertificateIssuanceConfigTransportSettings, + settings.getCertificateIssuanceConfigSettings(), + clientContext); + this.createCertificateIssuanceConfigCallable = + callableFactory.createUnaryCallable( + createCertificateIssuanceConfigTransportSettings, + settings.createCertificateIssuanceConfigSettings(), + clientContext); + this.createCertificateIssuanceConfigOperationCallable = + callableFactory.createOperationCallable( + createCertificateIssuanceConfigTransportSettings, + settings.createCertificateIssuanceConfigOperationSettings(), + clientContext, + operationsStub); + this.deleteCertificateIssuanceConfigCallable = + callableFactory.createUnaryCallable( + deleteCertificateIssuanceConfigTransportSettings, + settings.deleteCertificateIssuanceConfigSettings(), + clientContext); + this.deleteCertificateIssuanceConfigOperationCallable = + callableFactory.createOperationCallable( + deleteCertificateIssuanceConfigTransportSettings, + settings.deleteCertificateIssuanceConfigOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -1094,6 +1257,51 @@ public UnaryCallable deleteDnsAuthoriz return deleteDnsAuthorizationOperationCallable; } + @Override + public UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse> + listCertificateIssuanceConfigsCallable() { + return listCertificateIssuanceConfigsCallable; + } + + @Override + public UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsPagedCallable() { + return listCertificateIssuanceConfigsPagedCallable; + } + + @Override + public UnaryCallable + getCertificateIssuanceConfigCallable() { + return getCertificateIssuanceConfigCallable; + } + + @Override + public UnaryCallable + createCertificateIssuanceConfigCallable() { + return createCertificateIssuanceConfigCallable; + } + + @Override + public OperationCallable< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationCallable() { + return createCertificateIssuanceConfigOperationCallable; + } + + @Override + public UnaryCallable + deleteCertificateIssuanceConfigCallable() { + return deleteCertificateIssuanceConfigCallable; + } + + @Override + public OperationCallable + deleteCertificateIssuanceConfigOperationCallable() { + return deleteCertificateIssuanceConfigOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/HttpJsonCertificateManagerCallableFactory.java b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/HttpJsonCertificateManagerCallableFactory.java similarity index 100% rename from java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/HttpJsonCertificateManagerCallableFactory.java rename to owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/HttpJsonCertificateManagerCallableFactory.java diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/HttpJsonCertificateManagerStub.java b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/HttpJsonCertificateManagerStub.java similarity index 83% rename from java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/HttpJsonCertificateManagerStub.java rename to owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/HttpJsonCertificateManagerStub.java index e299b268bbac..8367b5d7232f 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/HttpJsonCertificateManagerStub.java +++ b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/HttpJsonCertificateManagerStub.java @@ -16,6 +16,7 @@ package com.google.cloud.certificatemanager.v1.stub; +import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateIssuanceConfigsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapEntriesPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificatesPagedResponse; @@ -34,25 +35,32 @@ 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.certificatemanager.v1.Certificate; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; import com.google.cloud.certificatemanager.v1.CertificateMap; import com.google.cloud.certificatemanager.v1.CertificateMapEntry; +import com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest; import com.google.cloud.certificatemanager.v1.CreateCertificateRequest; import com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest; +import com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest; import com.google.cloud.certificatemanager.v1.DeleteCertificateRequest; import com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest; import com.google.cloud.certificatemanager.v1.DnsAuthorization; +import com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest; import com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest; import com.google.cloud.certificatemanager.v1.GetCertificateMapRequest; import com.google.cloud.certificatemanager.v1.GetCertificateRequest; import com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse; import com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest; import com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse; import com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest; @@ -97,6 +105,7 @@ public class HttpJsonCertificateManagerStub extends CertificateManagerStub { .add(Certificate.getDescriptor()) .add(CertificateMapEntry.getDescriptor()) .add(OperationMetadata.getDescriptor()) + .add(CertificateIssuanceConfig.getDescriptor()) .add(DnsAuthorization.getDescriptor()) .build(); @@ -890,6 +899,168 @@ public class HttpJsonCertificateManagerStub extends CertificateManagerStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse> + listCertificateIssuanceConfigsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.certificatemanager.v1.CertificateManager/ListCertificateIssuanceConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/certificateIssuanceConfigs", + 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( + ListCertificateIssuanceConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + GetCertificateIssuanceConfigRequest, CertificateIssuanceConfig> + getCertificateIssuanceConfigMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.certificatemanager.v1.CertificateManager/GetCertificateIssuanceConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/certificateIssuanceConfigs/*}", + 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(CertificateIssuanceConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createCertificateIssuanceConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.certificatemanager.v1.CertificateManager/CreateCertificateIssuanceConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/certificateIssuanceConfigs", + 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, + "certificateIssuanceConfigId", + request.getCertificateIssuanceConfigId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "certificateIssuanceConfig", + request.getCertificateIssuanceConfig(), + false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateCertificateIssuanceConfigRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteCertificateIssuanceConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.certificatemanager.v1.CertificateManager/DeleteCertificateIssuanceConfig") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/certificateIssuanceConfigs/*}", + 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(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteCertificateIssuanceConfigRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1025,6 +1196,23 @@ public class HttpJsonCertificateManagerStub extends CertificateManagerStub { deleteDnsAuthorizationCallable; private final OperationCallable deleteDnsAuthorizationOperationCallable; + private final UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse> + listCertificateIssuanceConfigsCallable; + private final UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsPagedCallable; + private final UnaryCallable + getCertificateIssuanceConfigCallable; + private final UnaryCallable + createCertificateIssuanceConfigCallable; + private final OperationCallable< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationCallable; + private final UnaryCallable + deleteCertificateIssuanceConfigCallable; + private final OperationCallable + deleteCertificateIssuanceConfigOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -1196,6 +1384,34 @@ protected HttpJsonCertificateManagerStub( .setMethodDescriptor(deleteDnsAuthorizationMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse> + listCertificateIssuanceConfigsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listCertificateIssuanceConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getCertificateIssuanceConfigTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getCertificateIssuanceConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + createCertificateIssuanceConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCertificateIssuanceConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + deleteCertificateIssuanceConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCertificateIssuanceConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1394,6 +1610,43 @@ protected HttpJsonCertificateManagerStub( settings.deleteDnsAuthorizationOperationSettings(), clientContext, httpJsonOperationsStub); + this.listCertificateIssuanceConfigsCallable = + callableFactory.createUnaryCallable( + listCertificateIssuanceConfigsTransportSettings, + settings.listCertificateIssuanceConfigsSettings(), + clientContext); + this.listCertificateIssuanceConfigsPagedCallable = + callableFactory.createPagedCallable( + listCertificateIssuanceConfigsTransportSettings, + settings.listCertificateIssuanceConfigsSettings(), + clientContext); + this.getCertificateIssuanceConfigCallable = + callableFactory.createUnaryCallable( + getCertificateIssuanceConfigTransportSettings, + settings.getCertificateIssuanceConfigSettings(), + clientContext); + this.createCertificateIssuanceConfigCallable = + callableFactory.createUnaryCallable( + createCertificateIssuanceConfigTransportSettings, + settings.createCertificateIssuanceConfigSettings(), + clientContext); + this.createCertificateIssuanceConfigOperationCallable = + callableFactory.createOperationCallable( + createCertificateIssuanceConfigTransportSettings, + settings.createCertificateIssuanceConfigOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteCertificateIssuanceConfigCallable = + callableFactory.createUnaryCallable( + deleteCertificateIssuanceConfigTransportSettings, + settings.deleteCertificateIssuanceConfigSettings(), + clientContext); + this.deleteCertificateIssuanceConfigOperationCallable = + callableFactory.createOperationCallable( + deleteCertificateIssuanceConfigTransportSettings, + settings.deleteCertificateIssuanceConfigOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -1431,6 +1684,10 @@ public static List getMethodDescriptors() { methodDescriptors.add(createDnsAuthorizationMethodDescriptor); methodDescriptors.add(updateDnsAuthorizationMethodDescriptor); methodDescriptors.add(deleteDnsAuthorizationMethodDescriptor); + methodDescriptors.add(listCertificateIssuanceConfigsMethodDescriptor); + methodDescriptors.add(getCertificateIssuanceConfigMethodDescriptor); + methodDescriptors.add(createCertificateIssuanceConfigMethodDescriptor); + methodDescriptors.add(deleteCertificateIssuanceConfigMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -1644,6 +1901,51 @@ public UnaryCallable deleteDnsAuthoriz return deleteDnsAuthorizationOperationCallable; } + @Override + public UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse> + listCertificateIssuanceConfigsCallable() { + return listCertificateIssuanceConfigsCallable; + } + + @Override + public UnaryCallable< + ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsPagedResponse> + listCertificateIssuanceConfigsPagedCallable() { + return listCertificateIssuanceConfigsPagedCallable; + } + + @Override + public UnaryCallable + getCertificateIssuanceConfigCallable() { + return getCertificateIssuanceConfigCallable; + } + + @Override + public UnaryCallable + createCertificateIssuanceConfigCallable() { + return createCertificateIssuanceConfigCallable; + } + + @Override + public OperationCallable< + CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata> + createCertificateIssuanceConfigOperationCallable() { + return createCertificateIssuanceConfigOperationCallable; + } + + @Override + public UnaryCallable + deleteCertificateIssuanceConfigCallable() { + return deleteCertificateIssuanceConfigCallable; + } + + @Override + public OperationCallable + deleteCertificateIssuanceConfigOperationCallable() { + return deleteCertificateIssuanceConfigOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/CertificateManagerClientHttpJsonTest.java b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/CertificateManagerClientHttpJsonTest.java similarity index 82% rename from java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/CertificateManagerClientHttpJsonTest.java rename to owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/CertificateManagerClientHttpJsonTest.java index 54169a7aa3a9..2958ae16c20f 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/CertificateManagerClientHttpJsonTest.java +++ b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/CertificateManagerClientHttpJsonTest.java @@ -16,6 +16,7 @@ package com.google.cloud.certificatemanager.v1; +import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateIssuanceConfigsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapEntriesPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificatesPagedResponse; @@ -39,6 +40,7 @@ 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.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; @@ -2118,6 +2120,468 @@ public void deleteDnsAuthorizationExceptionTest2() throws Exception { } } + @Test + public void listCertificateIssuanceConfigsTest() throws Exception { + CertificateIssuanceConfig responsesElement = CertificateIssuanceConfig.newBuilder().build(); + ListCertificateIssuanceConfigsResponse expectedResponse = + ListCertificateIssuanceConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllCertificateIssuanceConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListCertificateIssuanceConfigsPagedResponse pagedListResponse = + client.listCertificateIssuanceConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getCertificateIssuanceConfigsList().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 listCertificateIssuanceConfigsExceptionTest() 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.listCertificateIssuanceConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCertificateIssuanceConfigsTest2() throws Exception { + CertificateIssuanceConfig responsesElement = CertificateIssuanceConfig.newBuilder().build(); + ListCertificateIssuanceConfigsResponse expectedResponse = + ListCertificateIssuanceConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllCertificateIssuanceConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListCertificateIssuanceConfigsPagedResponse pagedListResponse = + client.listCertificateIssuanceConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getCertificateIssuanceConfigsList().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 listCertificateIssuanceConfigsExceptionTest2() 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.listCertificateIssuanceConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCertificateIssuanceConfigTest() throws Exception { + CertificateIssuanceConfig expectedResponse = + CertificateIssuanceConfig.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setCertificateAuthorityConfig( + CertificateIssuanceConfig.CertificateAuthorityConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setRotationWindowPercentage(873917384) + .build(); + mockService.addResponse(expectedResponse); + + CertificateIssuanceConfigName name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]"); + + CertificateIssuanceConfig actualResponse = client.getCertificateIssuanceConfig(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 getCertificateIssuanceConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateIssuanceConfigName name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]"); + client.getCertificateIssuanceConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCertificateIssuanceConfigTest2() throws Exception { + CertificateIssuanceConfig expectedResponse = + CertificateIssuanceConfig.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setCertificateAuthorityConfig( + CertificateIssuanceConfig.CertificateAuthorityConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setRotationWindowPercentage(873917384) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3905/locations/location-3905/certificateIssuanceConfigs/certificateIssuanceConfig-3905"; + + CertificateIssuanceConfig actualResponse = client.getCertificateIssuanceConfig(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 getCertificateIssuanceConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3905/locations/location-3905/certificateIssuanceConfigs/certificateIssuanceConfig-3905"; + client.getCertificateIssuanceConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCertificateIssuanceConfigTest() throws Exception { + CertificateIssuanceConfig expectedResponse = + CertificateIssuanceConfig.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setCertificateAuthorityConfig( + CertificateIssuanceConfig.CertificateAuthorityConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setRotationWindowPercentage(873917384) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCertificateIssuanceConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CertificateIssuanceConfig certificateIssuanceConfig = + CertificateIssuanceConfig.newBuilder().build(); + String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023"; + + CertificateIssuanceConfig actualResponse = + client + .createCertificateIssuanceConfigAsync( + parent, certificateIssuanceConfig, certificateIssuanceConfigId) + .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 createCertificateIssuanceConfigExceptionTest() 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]"); + CertificateIssuanceConfig certificateIssuanceConfig = + CertificateIssuanceConfig.newBuilder().build(); + String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023"; + client + .createCertificateIssuanceConfigAsync( + parent, certificateIssuanceConfig, certificateIssuanceConfigId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createCertificateIssuanceConfigTest2() throws Exception { + CertificateIssuanceConfig expectedResponse = + CertificateIssuanceConfig.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setCertificateAuthorityConfig( + CertificateIssuanceConfig.CertificateAuthorityConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setRotationWindowPercentage(873917384) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCertificateIssuanceConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + CertificateIssuanceConfig certificateIssuanceConfig = + CertificateIssuanceConfig.newBuilder().build(); + String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023"; + + CertificateIssuanceConfig actualResponse = + client + .createCertificateIssuanceConfigAsync( + parent, certificateIssuanceConfig, certificateIssuanceConfigId) + .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 createCertificateIssuanceConfigExceptionTest2() 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"; + CertificateIssuanceConfig certificateIssuanceConfig = + CertificateIssuanceConfig.newBuilder().build(); + String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023"; + client + .createCertificateIssuanceConfigAsync( + parent, certificateIssuanceConfig, certificateIssuanceConfigId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteCertificateIssuanceConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCertificateIssuanceConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CertificateIssuanceConfigName name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]"); + + client.deleteCertificateIssuanceConfigAsync(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 deleteCertificateIssuanceConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateIssuanceConfigName name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]"); + client.deleteCertificateIssuanceConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteCertificateIssuanceConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCertificateIssuanceConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-3905/locations/location-3905/certificateIssuanceConfigs/certificateIssuanceConfig-3905"; + + client.deleteCertificateIssuanceConfigAsync(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 deleteCertificateIssuanceConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3905/locations/location-3905/certificateIssuanceConfigs/certificateIssuanceConfig-3905"; + client.deleteCertificateIssuanceConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/CertificateManagerClientTest.java b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/CertificateManagerClientTest.java similarity index 81% rename from java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/CertificateManagerClientTest.java rename to owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/CertificateManagerClientTest.java index 1b3f418c49c8..253189b5eda3 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/CertificateManagerClientTest.java +++ b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/CertificateManagerClientTest.java @@ -16,6 +16,7 @@ package com.google.cloud.certificatemanager.v1; +import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateIssuanceConfigsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapEntriesPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapsPagedResponse; import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificatesPagedResponse; @@ -38,6 +39,7 @@ import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; +import com.google.protobuf.Duration; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; @@ -1912,6 +1914,442 @@ public void deleteDnsAuthorizationExceptionTest2() throws Exception { } } + @Test + public void listCertificateIssuanceConfigsTest() throws Exception { + CertificateIssuanceConfig responsesElement = CertificateIssuanceConfig.newBuilder().build(); + ListCertificateIssuanceConfigsResponse expectedResponse = + ListCertificateIssuanceConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllCertificateIssuanceConfigs(Arrays.asList(responsesElement)) + .build(); + mockCertificateManager.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListCertificateIssuanceConfigsPagedResponse pagedListResponse = + client.listCertificateIssuanceConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getCertificateIssuanceConfigsList().get(0), resources.get(0)); + + List actualRequests = mockCertificateManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCertificateIssuanceConfigsRequest actualRequest = + ((ListCertificateIssuanceConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCertificateIssuanceConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCertificateManager.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listCertificateIssuanceConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCertificateIssuanceConfigsTest2() throws Exception { + CertificateIssuanceConfig responsesElement = CertificateIssuanceConfig.newBuilder().build(); + ListCertificateIssuanceConfigsResponse expectedResponse = + ListCertificateIssuanceConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllCertificateIssuanceConfigs(Arrays.asList(responsesElement)) + .build(); + mockCertificateManager.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListCertificateIssuanceConfigsPagedResponse pagedListResponse = + client.listCertificateIssuanceConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getCertificateIssuanceConfigsList().get(0), resources.get(0)); + + List actualRequests = mockCertificateManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCertificateIssuanceConfigsRequest actualRequest = + ((ListCertificateIssuanceConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCertificateIssuanceConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCertificateManager.addException(exception); + + try { + String parent = "parent-995424086"; + client.listCertificateIssuanceConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCertificateIssuanceConfigTest() throws Exception { + CertificateIssuanceConfig expectedResponse = + CertificateIssuanceConfig.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setCertificateAuthorityConfig( + CertificateIssuanceConfig.CertificateAuthorityConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setRotationWindowPercentage(873917384) + .build(); + mockCertificateManager.addResponse(expectedResponse); + + CertificateIssuanceConfigName name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]"); + + CertificateIssuanceConfig actualResponse = client.getCertificateIssuanceConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCertificateManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCertificateIssuanceConfigRequest actualRequest = + ((GetCertificateIssuanceConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCertificateIssuanceConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCertificateManager.addException(exception); + + try { + CertificateIssuanceConfigName name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]"); + client.getCertificateIssuanceConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCertificateIssuanceConfigTest2() throws Exception { + CertificateIssuanceConfig expectedResponse = + CertificateIssuanceConfig.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setCertificateAuthorityConfig( + CertificateIssuanceConfig.CertificateAuthorityConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setRotationWindowPercentage(873917384) + .build(); + mockCertificateManager.addResponse(expectedResponse); + + String name = "name3373707"; + + CertificateIssuanceConfig actualResponse = client.getCertificateIssuanceConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCertificateManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCertificateIssuanceConfigRequest actualRequest = + ((GetCertificateIssuanceConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCertificateIssuanceConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCertificateManager.addException(exception); + + try { + String name = "name3373707"; + client.getCertificateIssuanceConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCertificateIssuanceConfigTest() throws Exception { + CertificateIssuanceConfig expectedResponse = + CertificateIssuanceConfig.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setCertificateAuthorityConfig( + CertificateIssuanceConfig.CertificateAuthorityConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setRotationWindowPercentage(873917384) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCertificateIssuanceConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCertificateManager.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CertificateIssuanceConfig certificateIssuanceConfig = + CertificateIssuanceConfig.newBuilder().build(); + String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023"; + + CertificateIssuanceConfig actualResponse = + client + .createCertificateIssuanceConfigAsync( + parent, certificateIssuanceConfig, certificateIssuanceConfigId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCertificateManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCertificateIssuanceConfigRequest actualRequest = + ((CreateCertificateIssuanceConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(certificateIssuanceConfig, actualRequest.getCertificateIssuanceConfig()); + Assert.assertEquals( + certificateIssuanceConfigId, actualRequest.getCertificateIssuanceConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCertificateIssuanceConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCertificateManager.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CertificateIssuanceConfig certificateIssuanceConfig = + CertificateIssuanceConfig.newBuilder().build(); + String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023"; + client + .createCertificateIssuanceConfigAsync( + parent, certificateIssuanceConfig, certificateIssuanceConfigId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createCertificateIssuanceConfigTest2() throws Exception { + CertificateIssuanceConfig expectedResponse = + CertificateIssuanceConfig.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setCertificateAuthorityConfig( + CertificateIssuanceConfig.CertificateAuthorityConfig.newBuilder().build()) + .setLifetime(Duration.newBuilder().build()) + .setRotationWindowPercentage(873917384) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCertificateIssuanceConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCertificateManager.addResponse(resultOperation); + + String parent = "parent-995424086"; + CertificateIssuanceConfig certificateIssuanceConfig = + CertificateIssuanceConfig.newBuilder().build(); + String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023"; + + CertificateIssuanceConfig actualResponse = + client + .createCertificateIssuanceConfigAsync( + parent, certificateIssuanceConfig, certificateIssuanceConfigId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCertificateManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCertificateIssuanceConfigRequest actualRequest = + ((CreateCertificateIssuanceConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(certificateIssuanceConfig, actualRequest.getCertificateIssuanceConfig()); + Assert.assertEquals( + certificateIssuanceConfigId, actualRequest.getCertificateIssuanceConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCertificateIssuanceConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCertificateManager.addException(exception); + + try { + String parent = "parent-995424086"; + CertificateIssuanceConfig certificateIssuanceConfig = + CertificateIssuanceConfig.newBuilder().build(); + String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023"; + client + .createCertificateIssuanceConfigAsync( + parent, certificateIssuanceConfig, certificateIssuanceConfigId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteCertificateIssuanceConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCertificateIssuanceConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCertificateManager.addResponse(resultOperation); + + CertificateIssuanceConfigName name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]"); + + client.deleteCertificateIssuanceConfigAsync(name).get(); + + List actualRequests = mockCertificateManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCertificateIssuanceConfigRequest actualRequest = + ((DeleteCertificateIssuanceConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCertificateIssuanceConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCertificateManager.addException(exception); + + try { + CertificateIssuanceConfigName name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]"); + client.deleteCertificateIssuanceConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteCertificateIssuanceConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCertificateIssuanceConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCertificateManager.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteCertificateIssuanceConfigAsync(name).get(); + + List actualRequests = mockCertificateManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCertificateIssuanceConfigRequest actualRequest = + ((DeleteCertificateIssuanceConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCertificateIssuanceConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCertificateManager.addException(exception); + + try { + String name = "name3373707"; + client.deleteCertificateIssuanceConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockCertificateManager.java b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockCertificateManager.java similarity index 100% rename from java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockCertificateManager.java rename to owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockCertificateManager.java diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockCertificateManagerImpl.java b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockCertificateManagerImpl.java similarity index 83% rename from java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockCertificateManagerImpl.java rename to owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockCertificateManagerImpl.java index 3c4aa85c9b0f..457575008a91 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockCertificateManagerImpl.java +++ b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockCertificateManagerImpl.java @@ -481,4 +481,90 @@ public void deleteDnsAuthorization( Exception.class.getName()))); } } + + @Override + public void listCertificateIssuanceConfigs( + ListCertificateIssuanceConfigsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListCertificateIssuanceConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ListCertificateIssuanceConfigsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListCertificateIssuanceConfigs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListCertificateIssuanceConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getCertificateIssuanceConfig( + GetCertificateIssuanceConfigRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CertificateIssuanceConfig) { + requests.add(request); + responseObserver.onNext(((CertificateIssuanceConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetCertificateIssuanceConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CertificateIssuanceConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createCertificateIssuanceConfig( + CreateCertificateIssuanceConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateCertificateIssuanceConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteCertificateIssuanceConfig( + DeleteCertificateIssuanceConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteCertificateIssuanceConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockLocations.java b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockLocations.java similarity index 100% rename from java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockLocations.java rename to owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockLocations.java diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockLocationsImpl.java b/owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockLocationsImpl.java similarity index 100% rename from java-certificate-manager/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockLocationsImpl.java rename to owl-bot-staging/java-certificate-manager/v1/google-cloud-certificate-manager/src/test/java/com/google/cloud/certificatemanager/v1/MockLocationsImpl.java diff --git a/owl-bot-staging/java-certificate-manager/v1/grpc-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerGrpc.java b/owl-bot-staging/java-certificate-manager/v1/grpc-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerGrpc.java new file mode 100644 index 000000000000..2f3460200a98 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/grpc-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerGrpc.java @@ -0,0 +1,2379 @@ +package com.google.cloud.certificatemanager.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * API Overview
+ * Certificates Manager API allows customers to see and manage all their TLS
+ * certificates.
+ * Certificates Manager API service provides methods to manage certificates,
+ * group them into collections, and create serving configuration that can be
+ * easily applied to other Cloud resources e.g. Target Proxies.
+ * Data Model
+ * The Certificates Manager service exposes the following resources:
+ * * `Certificate` which describes a single TLS certificate.
+ * * `CertificateMap` which describes a collection of certificates that can be
+ * attached to a target resource.
+ * * `CertificateMapEntry` which describes a single configuration entry that
+ * consists of a SNI and a group of certificates. It's a subresource of
+ * CertificateMap.
+ * Certificate, CertificateMap and CertificateMapEntry IDs
+ * have to match "^[a-z0-9-]{1,63}$" regexp, which means that
+ * - only lower case letters, digits, and hyphen are allowed
+ * - length of the resource ID has to be in [1,63] range.
+ * Provides methods to manage Cloud Certificate Manager entities.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/certificatemanager/v1/certificate_manager.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class CertificateManagerGrpc { + + private CertificateManagerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.certificatemanager.v1.CertificateManager"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListCertificatesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCertificates", + requestType = com.google.cloud.certificatemanager.v1.ListCertificatesRequest.class, + responseType = com.google.cloud.certificatemanager.v1.ListCertificatesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCertificatesMethod() { + io.grpc.MethodDescriptor getListCertificatesMethod; + if ((getListCertificatesMethod = CertificateManagerGrpc.getListCertificatesMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getListCertificatesMethod = CertificateManagerGrpc.getListCertificatesMethod) == null) { + CertificateManagerGrpc.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.certificatemanager.v1.ListCertificatesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.ListCertificatesResponse.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("ListCertificates")) + .build(); + } + } + } + return getListCertificatesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetCertificateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCertificate", + requestType = com.google.cloud.certificatemanager.v1.GetCertificateRequest.class, + responseType = com.google.cloud.certificatemanager.v1.Certificate.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetCertificateMethod() { + io.grpc.MethodDescriptor getGetCertificateMethod; + if ((getGetCertificateMethod = CertificateManagerGrpc.getGetCertificateMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getGetCertificateMethod = CertificateManagerGrpc.getGetCertificateMethod) == null) { + CertificateManagerGrpc.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.certificatemanager.v1.GetCertificateRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.Certificate.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("GetCertificate")) + .build(); + } + } + } + return getGetCertificateMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateCertificateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCertificate", + requestType = com.google.cloud.certificatemanager.v1.CreateCertificateRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateCertificateMethod() { + io.grpc.MethodDescriptor getCreateCertificateMethod; + if ((getCreateCertificateMethod = CertificateManagerGrpc.getCreateCertificateMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getCreateCertificateMethod = CertificateManagerGrpc.getCreateCertificateMethod) == null) { + CertificateManagerGrpc.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.certificatemanager.v1.CreateCertificateRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("CreateCertificate")) + .build(); + } + } + } + return getCreateCertificateMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateCertificateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCertificate", + requestType = com.google.cloud.certificatemanager.v1.UpdateCertificateRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateCertificateMethod() { + io.grpc.MethodDescriptor getUpdateCertificateMethod; + if ((getUpdateCertificateMethod = CertificateManagerGrpc.getUpdateCertificateMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getUpdateCertificateMethod = CertificateManagerGrpc.getUpdateCertificateMethod) == null) { + CertificateManagerGrpc.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.certificatemanager.v1.UpdateCertificateRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("UpdateCertificate")) + .build(); + } + } + } + return getUpdateCertificateMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteCertificateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCertificate", + requestType = com.google.cloud.certificatemanager.v1.DeleteCertificateRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteCertificateMethod() { + io.grpc.MethodDescriptor getDeleteCertificateMethod; + if ((getDeleteCertificateMethod = CertificateManagerGrpc.getDeleteCertificateMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getDeleteCertificateMethod = CertificateManagerGrpc.getDeleteCertificateMethod) == null) { + CertificateManagerGrpc.getDeleteCertificateMethod = getDeleteCertificateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCertificate")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.DeleteCertificateRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("DeleteCertificate")) + .build(); + } + } + } + return getDeleteCertificateMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCertificateMapsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCertificateMaps", + requestType = com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest.class, + responseType = com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCertificateMapsMethod() { + io.grpc.MethodDescriptor getListCertificateMapsMethod; + if ((getListCertificateMapsMethod = CertificateManagerGrpc.getListCertificateMapsMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getListCertificateMapsMethod = CertificateManagerGrpc.getListCertificateMapsMethod) == null) { + CertificateManagerGrpc.getListCertificateMapsMethod = getListCertificateMapsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCertificateMaps")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("ListCertificateMaps")) + .build(); + } + } + } + return getListCertificateMapsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetCertificateMapMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCertificateMap", + requestType = com.google.cloud.certificatemanager.v1.GetCertificateMapRequest.class, + responseType = com.google.cloud.certificatemanager.v1.CertificateMap.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetCertificateMapMethod() { + io.grpc.MethodDescriptor getGetCertificateMapMethod; + if ((getGetCertificateMapMethod = CertificateManagerGrpc.getGetCertificateMapMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getGetCertificateMapMethod = CertificateManagerGrpc.getGetCertificateMapMethod) == null) { + CertificateManagerGrpc.getGetCertificateMapMethod = getGetCertificateMapMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCertificateMap")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.GetCertificateMapRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.CertificateMap.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("GetCertificateMap")) + .build(); + } + } + } + return getGetCertificateMapMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateCertificateMapMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCertificateMap", + requestType = com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateCertificateMapMethod() { + io.grpc.MethodDescriptor getCreateCertificateMapMethod; + if ((getCreateCertificateMapMethod = CertificateManagerGrpc.getCreateCertificateMapMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getCreateCertificateMapMethod = CertificateManagerGrpc.getCreateCertificateMapMethod) == null) { + CertificateManagerGrpc.getCreateCertificateMapMethod = getCreateCertificateMapMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCertificateMap")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("CreateCertificateMap")) + .build(); + } + } + } + return getCreateCertificateMapMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateCertificateMapMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateMap", + requestType = com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateCertificateMapMethod() { + io.grpc.MethodDescriptor getUpdateCertificateMapMethod; + if ((getUpdateCertificateMapMethod = CertificateManagerGrpc.getUpdateCertificateMapMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getUpdateCertificateMapMethod = CertificateManagerGrpc.getUpdateCertificateMapMethod) == null) { + CertificateManagerGrpc.getUpdateCertificateMapMethod = getUpdateCertificateMapMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCertificateMap")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("UpdateCertificateMap")) + .build(); + } + } + } + return getUpdateCertificateMapMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteCertificateMapMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCertificateMap", + requestType = com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteCertificateMapMethod() { + io.grpc.MethodDescriptor getDeleteCertificateMapMethod; + if ((getDeleteCertificateMapMethod = CertificateManagerGrpc.getDeleteCertificateMapMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getDeleteCertificateMapMethod = CertificateManagerGrpc.getDeleteCertificateMapMethod) == null) { + CertificateManagerGrpc.getDeleteCertificateMapMethod = getDeleteCertificateMapMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCertificateMap")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("DeleteCertificateMap")) + .build(); + } + } + } + return getDeleteCertificateMapMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCertificateMapEntriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCertificateMapEntries", + requestType = com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest.class, + responseType = com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCertificateMapEntriesMethod() { + io.grpc.MethodDescriptor getListCertificateMapEntriesMethod; + if ((getListCertificateMapEntriesMethod = CertificateManagerGrpc.getListCertificateMapEntriesMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getListCertificateMapEntriesMethod = CertificateManagerGrpc.getListCertificateMapEntriesMethod) == null) { + CertificateManagerGrpc.getListCertificateMapEntriesMethod = getListCertificateMapEntriesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCertificateMapEntries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("ListCertificateMapEntries")) + .build(); + } + } + } + return getListCertificateMapEntriesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetCertificateMapEntryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCertificateMapEntry", + requestType = com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest.class, + responseType = com.google.cloud.certificatemanager.v1.CertificateMapEntry.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetCertificateMapEntryMethod() { + io.grpc.MethodDescriptor getGetCertificateMapEntryMethod; + if ((getGetCertificateMapEntryMethod = CertificateManagerGrpc.getGetCertificateMapEntryMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getGetCertificateMapEntryMethod = CertificateManagerGrpc.getGetCertificateMapEntryMethod) == null) { + CertificateManagerGrpc.getGetCertificateMapEntryMethod = getGetCertificateMapEntryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCertificateMapEntry")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.CertificateMapEntry.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("GetCertificateMapEntry")) + .build(); + } + } + } + return getGetCertificateMapEntryMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateCertificateMapEntryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCertificateMapEntry", + requestType = com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateCertificateMapEntryMethod() { + io.grpc.MethodDescriptor getCreateCertificateMapEntryMethod; + if ((getCreateCertificateMapEntryMethod = CertificateManagerGrpc.getCreateCertificateMapEntryMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getCreateCertificateMapEntryMethod = CertificateManagerGrpc.getCreateCertificateMapEntryMethod) == null) { + CertificateManagerGrpc.getCreateCertificateMapEntryMethod = getCreateCertificateMapEntryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCertificateMapEntry")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("CreateCertificateMapEntry")) + .build(); + } + } + } + return getCreateCertificateMapEntryMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateCertificateMapEntryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCertificateMapEntry", + requestType = com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateCertificateMapEntryMethod() { + io.grpc.MethodDescriptor getUpdateCertificateMapEntryMethod; + if ((getUpdateCertificateMapEntryMethod = CertificateManagerGrpc.getUpdateCertificateMapEntryMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getUpdateCertificateMapEntryMethod = CertificateManagerGrpc.getUpdateCertificateMapEntryMethod) == null) { + CertificateManagerGrpc.getUpdateCertificateMapEntryMethod = getUpdateCertificateMapEntryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCertificateMapEntry")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("UpdateCertificateMapEntry")) + .build(); + } + } + } + return getUpdateCertificateMapEntryMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteCertificateMapEntryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCertificateMapEntry", + requestType = com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteCertificateMapEntryMethod() { + io.grpc.MethodDescriptor getDeleteCertificateMapEntryMethod; + if ((getDeleteCertificateMapEntryMethod = CertificateManagerGrpc.getDeleteCertificateMapEntryMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getDeleteCertificateMapEntryMethod = CertificateManagerGrpc.getDeleteCertificateMapEntryMethod) == null) { + CertificateManagerGrpc.getDeleteCertificateMapEntryMethod = getDeleteCertificateMapEntryMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCertificateMapEntry")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("DeleteCertificateMapEntry")) + .build(); + } + } + } + return getDeleteCertificateMapEntryMethod; + } + + private static volatile io.grpc.MethodDescriptor getListDnsAuthorizationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDnsAuthorizations", + requestType = com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest.class, + responseType = com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListDnsAuthorizationsMethod() { + io.grpc.MethodDescriptor getListDnsAuthorizationsMethod; + if ((getListDnsAuthorizationsMethod = CertificateManagerGrpc.getListDnsAuthorizationsMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getListDnsAuthorizationsMethod = CertificateManagerGrpc.getListDnsAuthorizationsMethod) == null) { + CertificateManagerGrpc.getListDnsAuthorizationsMethod = getListDnsAuthorizationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDnsAuthorizations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("ListDnsAuthorizations")) + .build(); + } + } + } + return getListDnsAuthorizationsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetDnsAuthorizationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDnsAuthorization", + requestType = com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest.class, + responseType = com.google.cloud.certificatemanager.v1.DnsAuthorization.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetDnsAuthorizationMethod() { + io.grpc.MethodDescriptor getGetDnsAuthorizationMethod; + if ((getGetDnsAuthorizationMethod = CertificateManagerGrpc.getGetDnsAuthorizationMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getGetDnsAuthorizationMethod = CertificateManagerGrpc.getGetDnsAuthorizationMethod) == null) { + CertificateManagerGrpc.getGetDnsAuthorizationMethod = getGetDnsAuthorizationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDnsAuthorization")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.DnsAuthorization.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("GetDnsAuthorization")) + .build(); + } + } + } + return getGetDnsAuthorizationMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateDnsAuthorizationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDnsAuthorization", + requestType = com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateDnsAuthorizationMethod() { + io.grpc.MethodDescriptor getCreateDnsAuthorizationMethod; + if ((getCreateDnsAuthorizationMethod = CertificateManagerGrpc.getCreateDnsAuthorizationMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getCreateDnsAuthorizationMethod = CertificateManagerGrpc.getCreateDnsAuthorizationMethod) == null) { + CertificateManagerGrpc.getCreateDnsAuthorizationMethod = getCreateDnsAuthorizationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDnsAuthorization")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("CreateDnsAuthorization")) + .build(); + } + } + } + return getCreateDnsAuthorizationMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateDnsAuthorizationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDnsAuthorization", + requestType = com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateDnsAuthorizationMethod() { + io.grpc.MethodDescriptor getUpdateDnsAuthorizationMethod; + if ((getUpdateDnsAuthorizationMethod = CertificateManagerGrpc.getUpdateDnsAuthorizationMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getUpdateDnsAuthorizationMethod = CertificateManagerGrpc.getUpdateDnsAuthorizationMethod) == null) { + CertificateManagerGrpc.getUpdateDnsAuthorizationMethod = getUpdateDnsAuthorizationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDnsAuthorization")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("UpdateDnsAuthorization")) + .build(); + } + } + } + return getUpdateDnsAuthorizationMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteDnsAuthorizationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDnsAuthorization", + requestType = com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteDnsAuthorizationMethod() { + io.grpc.MethodDescriptor getDeleteDnsAuthorizationMethod; + if ((getDeleteDnsAuthorizationMethod = CertificateManagerGrpc.getDeleteDnsAuthorizationMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getDeleteDnsAuthorizationMethod = CertificateManagerGrpc.getDeleteDnsAuthorizationMethod) == null) { + CertificateManagerGrpc.getDeleteDnsAuthorizationMethod = getDeleteDnsAuthorizationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDnsAuthorization")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("DeleteDnsAuthorization")) + .build(); + } + } + } + return getDeleteDnsAuthorizationMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCertificateIssuanceConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCertificateIssuanceConfigs", + requestType = com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest.class, + responseType = com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCertificateIssuanceConfigsMethod() { + io.grpc.MethodDescriptor getListCertificateIssuanceConfigsMethod; + if ((getListCertificateIssuanceConfigsMethod = CertificateManagerGrpc.getListCertificateIssuanceConfigsMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getListCertificateIssuanceConfigsMethod = CertificateManagerGrpc.getListCertificateIssuanceConfigsMethod) == null) { + CertificateManagerGrpc.getListCertificateIssuanceConfigsMethod = getListCertificateIssuanceConfigsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCertificateIssuanceConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("ListCertificateIssuanceConfigs")) + .build(); + } + } + } + return getListCertificateIssuanceConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetCertificateIssuanceConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCertificateIssuanceConfig", + requestType = com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest.class, + responseType = com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetCertificateIssuanceConfigMethod() { + io.grpc.MethodDescriptor getGetCertificateIssuanceConfigMethod; + if ((getGetCertificateIssuanceConfigMethod = CertificateManagerGrpc.getGetCertificateIssuanceConfigMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getGetCertificateIssuanceConfigMethod = CertificateManagerGrpc.getGetCertificateIssuanceConfigMethod) == null) { + CertificateManagerGrpc.getGetCertificateIssuanceConfigMethod = getGetCertificateIssuanceConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCertificateIssuanceConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("GetCertificateIssuanceConfig")) + .build(); + } + } + } + return getGetCertificateIssuanceConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateCertificateIssuanceConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCertificateIssuanceConfig", + requestType = com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateCertificateIssuanceConfigMethod() { + io.grpc.MethodDescriptor getCreateCertificateIssuanceConfigMethod; + if ((getCreateCertificateIssuanceConfigMethod = CertificateManagerGrpc.getCreateCertificateIssuanceConfigMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getCreateCertificateIssuanceConfigMethod = CertificateManagerGrpc.getCreateCertificateIssuanceConfigMethod) == null) { + CertificateManagerGrpc.getCreateCertificateIssuanceConfigMethod = getCreateCertificateIssuanceConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCertificateIssuanceConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("CreateCertificateIssuanceConfig")) + .build(); + } + } + } + return getCreateCertificateIssuanceConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteCertificateIssuanceConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCertificateIssuanceConfig", + requestType = com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteCertificateIssuanceConfigMethod() { + io.grpc.MethodDescriptor getDeleteCertificateIssuanceConfigMethod; + if ((getDeleteCertificateIssuanceConfigMethod = CertificateManagerGrpc.getDeleteCertificateIssuanceConfigMethod) == null) { + synchronized (CertificateManagerGrpc.class) { + if ((getDeleteCertificateIssuanceConfigMethod = CertificateManagerGrpc.getDeleteCertificateIssuanceConfigMethod) == null) { + CertificateManagerGrpc.getDeleteCertificateIssuanceConfigMethod = getDeleteCertificateIssuanceConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCertificateIssuanceConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CertificateManagerMethodDescriptorSupplier("DeleteCertificateIssuanceConfig")) + .build(); + } + } + } + return getDeleteCertificateIssuanceConfigMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static CertificateManagerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CertificateManagerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateManagerStub(channel, callOptions); + } + }; + return CertificateManagerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CertificateManagerBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CertificateManagerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateManagerBlockingStub(channel, callOptions); + } + }; + return CertificateManagerBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static CertificateManagerFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CertificateManagerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateManagerFutureStub(channel, callOptions); + } + }; + return CertificateManagerFutureStub.newStub(factory, channel); + } + + /** + *
+   * API Overview
+   * Certificates Manager API allows customers to see and manage all their TLS
+   * certificates.
+   * Certificates Manager API service provides methods to manage certificates,
+   * group them into collections, and create serving configuration that can be
+   * easily applied to other Cloud resources e.g. Target Proxies.
+   * Data Model
+   * The Certificates Manager service exposes the following resources:
+   * * `Certificate` which describes a single TLS certificate.
+   * * `CertificateMap` which describes a collection of certificates that can be
+   * attached to a target resource.
+   * * `CertificateMapEntry` which describes a single configuration entry that
+   * consists of a SNI and a group of certificates. It's a subresource of
+   * CertificateMap.
+   * Certificate, CertificateMap and CertificateMapEntry IDs
+   * have to match "^[a-z0-9-]{1,63}$" regexp, which means that
+   * - only lower case letters, digits, and hyphen are allowed
+   * - length of the resource ID has to be in [1,63] range.
+   * Provides methods to manage Cloud Certificate Manager entities.
+   * 
+ */ + public static abstract class CertificateManagerImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists Certificates in a given project and location.
+     * 
+ */ + public void listCertificates(com.google.cloud.certificatemanager.v1.ListCertificatesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCertificatesMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single Certificate.
+     * 
+ */ + public void getCertificate(com.google.cloud.certificatemanager.v1.GetCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCertificateMethod(), responseObserver); + } + + /** + *
+     * Creates a new Certificate in a given project and location.
+     * 
+ */ + public void createCertificate(com.google.cloud.certificatemanager.v1.CreateCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCertificateMethod(), responseObserver); + } + + /** + *
+     * Updates a Certificate.
+     * 
+ */ + public void updateCertificate(com.google.cloud.certificatemanager.v1.UpdateCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCertificateMethod(), responseObserver); + } + + /** + *
+     * Deletes a single Certificate.
+     * 
+ */ + public void deleteCertificate(com.google.cloud.certificatemanager.v1.DeleteCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCertificateMethod(), responseObserver); + } + + /** + *
+     * Lists CertificateMaps in a given project and location.
+     * 
+ */ + public void listCertificateMaps(com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCertificateMapsMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single CertificateMap.
+     * 
+ */ + public void getCertificateMap(com.google.cloud.certificatemanager.v1.GetCertificateMapRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCertificateMapMethod(), responseObserver); + } + + /** + *
+     * Creates a new CertificateMap in a given project and location.
+     * 
+ */ + public void createCertificateMap(com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCertificateMapMethod(), responseObserver); + } + + /** + *
+     * Updates a CertificateMap.
+     * 
+ */ + public void updateCertificateMap(com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCertificateMapMethod(), responseObserver); + } + + /** + *
+     * Deletes a single CertificateMap. A Certificate Map can't be deleted
+     * if it contains Certificate Map Entries. Remove all the entries from
+     * the map before calling this method.
+     * 
+ */ + public void deleteCertificateMap(com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCertificateMapMethod(), responseObserver); + } + + /** + *
+     * Lists CertificateMapEntries in a given project and location.
+     * 
+ */ + public void listCertificateMapEntries(com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCertificateMapEntriesMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single CertificateMapEntry.
+     * 
+ */ + public void getCertificateMapEntry(com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCertificateMapEntryMethod(), responseObserver); + } + + /** + *
+     * Creates a new CertificateMapEntry in a given project and location.
+     * 
+ */ + public void createCertificateMapEntry(com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCertificateMapEntryMethod(), responseObserver); + } + + /** + *
+     * Updates a CertificateMapEntry.
+     * 
+ */ + public void updateCertificateMapEntry(com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCertificateMapEntryMethod(), responseObserver); + } + + /** + *
+     * Deletes a single CertificateMapEntry.
+     * 
+ */ + public void deleteCertificateMapEntry(com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCertificateMapEntryMethod(), responseObserver); + } + + /** + *
+     * Lists DnsAuthorizations in a given project and location.
+     * 
+ */ + public void listDnsAuthorizations(com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDnsAuthorizationsMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single DnsAuthorization.
+     * 
+ */ + public void getDnsAuthorization(com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDnsAuthorizationMethod(), responseObserver); + } + + /** + *
+     * Creates a new DnsAuthorization in a given project and location.
+     * 
+ */ + public void createDnsAuthorization(com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDnsAuthorizationMethod(), responseObserver); + } + + /** + *
+     * Updates a DnsAuthorization.
+     * 
+ */ + public void updateDnsAuthorization(com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDnsAuthorizationMethod(), responseObserver); + } + + /** + *
+     * Deletes a single DnsAuthorization.
+     * 
+ */ + public void deleteDnsAuthorization(com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDnsAuthorizationMethod(), responseObserver); + } + + /** + *
+     * Lists CertificateIssuanceConfigs in a given project and location.
+     * 
+ */ + public void listCertificateIssuanceConfigs(com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCertificateIssuanceConfigsMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single CertificateIssuanceConfig.
+     * 
+ */ + public void getCertificateIssuanceConfig(com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCertificateIssuanceConfigMethod(), responseObserver); + } + + /** + *
+     * Creates a new CertificateIssuanceConfig in a given project and location.
+     * 
+ */ + public void createCertificateIssuanceConfig(com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCertificateIssuanceConfigMethod(), responseObserver); + } + + /** + *
+     * Deletes a single CertificateIssuanceConfig.
+     * 
+ */ + public void deleteCertificateIssuanceConfig(com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCertificateIssuanceConfigMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListCertificatesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.ListCertificatesRequest, + com.google.cloud.certificatemanager.v1.ListCertificatesResponse>( + this, METHODID_LIST_CERTIFICATES))) + .addMethod( + getGetCertificateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.GetCertificateRequest, + com.google.cloud.certificatemanager.v1.Certificate>( + this, METHODID_GET_CERTIFICATE))) + .addMethod( + getCreateCertificateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.CreateCertificateRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_CERTIFICATE))) + .addMethod( + getUpdateCertificateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.UpdateCertificateRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_CERTIFICATE))) + .addMethod( + getDeleteCertificateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.DeleteCertificateRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_CERTIFICATE))) + .addMethod( + getListCertificateMapsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest, + com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse>( + this, METHODID_LIST_CERTIFICATE_MAPS))) + .addMethod( + getGetCertificateMapMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.GetCertificateMapRequest, + com.google.cloud.certificatemanager.v1.CertificateMap>( + this, METHODID_GET_CERTIFICATE_MAP))) + .addMethod( + getCreateCertificateMapMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_CERTIFICATE_MAP))) + .addMethod( + getUpdateCertificateMapMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_CERTIFICATE_MAP))) + .addMethod( + getDeleteCertificateMapMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_CERTIFICATE_MAP))) + .addMethod( + getListCertificateMapEntriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest, + com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse>( + this, METHODID_LIST_CERTIFICATE_MAP_ENTRIES))) + .addMethod( + getGetCertificateMapEntryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest, + com.google.cloud.certificatemanager.v1.CertificateMapEntry>( + this, METHODID_GET_CERTIFICATE_MAP_ENTRY))) + .addMethod( + getCreateCertificateMapEntryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_CERTIFICATE_MAP_ENTRY))) + .addMethod( + getUpdateCertificateMapEntryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_CERTIFICATE_MAP_ENTRY))) + .addMethod( + getDeleteCertificateMapEntryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_CERTIFICATE_MAP_ENTRY))) + .addMethod( + getListDnsAuthorizationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest, + com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse>( + this, METHODID_LIST_DNS_AUTHORIZATIONS))) + .addMethod( + getGetDnsAuthorizationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest, + com.google.cloud.certificatemanager.v1.DnsAuthorization>( + this, METHODID_GET_DNS_AUTHORIZATION))) + .addMethod( + getCreateDnsAuthorizationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_DNS_AUTHORIZATION))) + .addMethod( + getUpdateDnsAuthorizationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_DNS_AUTHORIZATION))) + .addMethod( + getDeleteDnsAuthorizationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_DNS_AUTHORIZATION))) + .addMethod( + getListCertificateIssuanceConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest, + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse>( + this, METHODID_LIST_CERTIFICATE_ISSUANCE_CONFIGS))) + .addMethod( + getGetCertificateIssuanceConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest, + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig>( + this, METHODID_GET_CERTIFICATE_ISSUANCE_CONFIG))) + .addMethod( + getCreateCertificateIssuanceConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_CERTIFICATE_ISSUANCE_CONFIG))) + .addMethod( + getDeleteCertificateIssuanceConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_CERTIFICATE_ISSUANCE_CONFIG))) + .build(); + } + } + + /** + *
+   * API Overview
+   * Certificates Manager API allows customers to see and manage all their TLS
+   * certificates.
+   * Certificates Manager API service provides methods to manage certificates,
+   * group them into collections, and create serving configuration that can be
+   * easily applied to other Cloud resources e.g. Target Proxies.
+   * Data Model
+   * The Certificates Manager service exposes the following resources:
+   * * `Certificate` which describes a single TLS certificate.
+   * * `CertificateMap` which describes a collection of certificates that can be
+   * attached to a target resource.
+   * * `CertificateMapEntry` which describes a single configuration entry that
+   * consists of a SNI and a group of certificates. It's a subresource of
+   * CertificateMap.
+   * Certificate, CertificateMap and CertificateMapEntry IDs
+   * have to match "^[a-z0-9-]{1,63}$" regexp, which means that
+   * - only lower case letters, digits, and hyphen are allowed
+   * - length of the resource ID has to be in [1,63] range.
+   * Provides methods to manage Cloud Certificate Manager entities.
+   * 
+ */ + public static final class CertificateManagerStub extends io.grpc.stub.AbstractAsyncStub { + private CertificateManagerStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CertificateManagerStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateManagerStub(channel, callOptions); + } + + /** + *
+     * Lists Certificates in a given project and location.
+     * 
+ */ + public void listCertificates(com.google.cloud.certificatemanager.v1.ListCertificatesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCertificatesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single Certificate.
+     * 
+ */ + public void getCertificate(com.google.cloud.certificatemanager.v1.GetCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCertificateMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new Certificate in a given project and location.
+     * 
+ */ + public void createCertificate(com.google.cloud.certificatemanager.v1.CreateCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCertificateMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a Certificate.
+     * 
+ */ + public void updateCertificate(com.google.cloud.certificatemanager.v1.UpdateCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCertificateMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single Certificate.
+     * 
+ */ + public void deleteCertificate(com.google.cloud.certificatemanager.v1.DeleteCertificateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCertificateMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists CertificateMaps in a given project and location.
+     * 
+ */ + public void listCertificateMaps(com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCertificateMapsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single CertificateMap.
+     * 
+ */ + public void getCertificateMap(com.google.cloud.certificatemanager.v1.GetCertificateMapRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCertificateMapMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new CertificateMap in a given project and location.
+     * 
+ */ + public void createCertificateMap(com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCertificateMapMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a CertificateMap.
+     * 
+ */ + public void updateCertificateMap(com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCertificateMapMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single CertificateMap. A Certificate Map can't be deleted
+     * if it contains Certificate Map Entries. Remove all the entries from
+     * the map before calling this method.
+     * 
+ */ + public void deleteCertificateMap(com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCertificateMapMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists CertificateMapEntries in a given project and location.
+     * 
+ */ + public void listCertificateMapEntries(com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCertificateMapEntriesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single CertificateMapEntry.
+     * 
+ */ + public void getCertificateMapEntry(com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCertificateMapEntryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new CertificateMapEntry in a given project and location.
+     * 
+ */ + public void createCertificateMapEntry(com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCertificateMapEntryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a CertificateMapEntry.
+     * 
+ */ + public void updateCertificateMapEntry(com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCertificateMapEntryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single CertificateMapEntry.
+     * 
+ */ + public void deleteCertificateMapEntry(com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCertificateMapEntryMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists DnsAuthorizations in a given project and location.
+     * 
+ */ + public void listDnsAuthorizations(com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDnsAuthorizationsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single DnsAuthorization.
+     * 
+ */ + public void getDnsAuthorization(com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDnsAuthorizationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new DnsAuthorization in a given project and location.
+     * 
+ */ + public void createDnsAuthorization(com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDnsAuthorizationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a DnsAuthorization.
+     * 
+ */ + public void updateDnsAuthorization(com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDnsAuthorizationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single DnsAuthorization.
+     * 
+ */ + public void deleteDnsAuthorization(com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDnsAuthorizationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists CertificateIssuanceConfigs in a given project and location.
+     * 
+ */ + public void listCertificateIssuanceConfigs(com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCertificateIssuanceConfigsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single CertificateIssuanceConfig.
+     * 
+ */ + public void getCertificateIssuanceConfig(com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCertificateIssuanceConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new CertificateIssuanceConfig in a given project and location.
+     * 
+ */ + public void createCertificateIssuanceConfig(com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCertificateIssuanceConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single CertificateIssuanceConfig.
+     * 
+ */ + public void deleteCertificateIssuanceConfig(com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCertificateIssuanceConfigMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * API Overview
+   * Certificates Manager API allows customers to see and manage all their TLS
+   * certificates.
+   * Certificates Manager API service provides methods to manage certificates,
+   * group them into collections, and create serving configuration that can be
+   * easily applied to other Cloud resources e.g. Target Proxies.
+   * Data Model
+   * The Certificates Manager service exposes the following resources:
+   * * `Certificate` which describes a single TLS certificate.
+   * * `CertificateMap` which describes a collection of certificates that can be
+   * attached to a target resource.
+   * * `CertificateMapEntry` which describes a single configuration entry that
+   * consists of a SNI and a group of certificates. It's a subresource of
+   * CertificateMap.
+   * Certificate, CertificateMap and CertificateMapEntry IDs
+   * have to match "^[a-z0-9-]{1,63}$" regexp, which means that
+   * - only lower case letters, digits, and hyphen are allowed
+   * - length of the resource ID has to be in [1,63] range.
+   * Provides methods to manage Cloud Certificate Manager entities.
+   * 
+ */ + public static final class CertificateManagerBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private CertificateManagerBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CertificateManagerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateManagerBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists Certificates in a given project and location.
+     * 
+ */ + public com.google.cloud.certificatemanager.v1.ListCertificatesResponse listCertificates(com.google.cloud.certificatemanager.v1.ListCertificatesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCertificatesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single Certificate.
+     * 
+ */ + public com.google.cloud.certificatemanager.v1.Certificate getCertificate(com.google.cloud.certificatemanager.v1.GetCertificateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCertificateMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new Certificate in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createCertificate(com.google.cloud.certificatemanager.v1.CreateCertificateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCertificateMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a Certificate.
+     * 
+ */ + public com.google.longrunning.Operation updateCertificate(com.google.cloud.certificatemanager.v1.UpdateCertificateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCertificateMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single Certificate.
+     * 
+ */ + public com.google.longrunning.Operation deleteCertificate(com.google.cloud.certificatemanager.v1.DeleteCertificateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCertificateMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists CertificateMaps in a given project and location.
+     * 
+ */ + public com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse listCertificateMaps(com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCertificateMapsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single CertificateMap.
+     * 
+ */ + public com.google.cloud.certificatemanager.v1.CertificateMap getCertificateMap(com.google.cloud.certificatemanager.v1.GetCertificateMapRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCertificateMapMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new CertificateMap in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createCertificateMap(com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCertificateMapMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a CertificateMap.
+     * 
+ */ + public com.google.longrunning.Operation updateCertificateMap(com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCertificateMapMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single CertificateMap. A Certificate Map can't be deleted
+     * if it contains Certificate Map Entries. Remove all the entries from
+     * the map before calling this method.
+     * 
+ */ + public com.google.longrunning.Operation deleteCertificateMap(com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCertificateMapMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists CertificateMapEntries in a given project and location.
+     * 
+ */ + public com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse listCertificateMapEntries(com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCertificateMapEntriesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single CertificateMapEntry.
+     * 
+ */ + public com.google.cloud.certificatemanager.v1.CertificateMapEntry getCertificateMapEntry(com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCertificateMapEntryMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new CertificateMapEntry in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createCertificateMapEntry(com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCertificateMapEntryMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a CertificateMapEntry.
+     * 
+ */ + public com.google.longrunning.Operation updateCertificateMapEntry(com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCertificateMapEntryMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single CertificateMapEntry.
+     * 
+ */ + public com.google.longrunning.Operation deleteCertificateMapEntry(com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCertificateMapEntryMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists DnsAuthorizations in a given project and location.
+     * 
+ */ + public com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse listDnsAuthorizations(com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDnsAuthorizationsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single DnsAuthorization.
+     * 
+ */ + public com.google.cloud.certificatemanager.v1.DnsAuthorization getDnsAuthorization(com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDnsAuthorizationMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new DnsAuthorization in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createDnsAuthorization(com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDnsAuthorizationMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a DnsAuthorization.
+     * 
+ */ + public com.google.longrunning.Operation updateDnsAuthorization(com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDnsAuthorizationMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single DnsAuthorization.
+     * 
+ */ + public com.google.longrunning.Operation deleteDnsAuthorization(com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDnsAuthorizationMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists CertificateIssuanceConfigs in a given project and location.
+     * 
+ */ + public com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse listCertificateIssuanceConfigs(com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCertificateIssuanceConfigsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single CertificateIssuanceConfig.
+     * 
+ */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig getCertificateIssuanceConfig(com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCertificateIssuanceConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new CertificateIssuanceConfig in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createCertificateIssuanceConfig(com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCertificateIssuanceConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single CertificateIssuanceConfig.
+     * 
+ */ + public com.google.longrunning.Operation deleteCertificateIssuanceConfig(com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCertificateIssuanceConfigMethod(), getCallOptions(), request); + } + } + + /** + *
+   * API Overview
+   * Certificates Manager API allows customers to see and manage all their TLS
+   * certificates.
+   * Certificates Manager API service provides methods to manage certificates,
+   * group them into collections, and create serving configuration that can be
+   * easily applied to other Cloud resources e.g. Target Proxies.
+   * Data Model
+   * The Certificates Manager service exposes the following resources:
+   * * `Certificate` which describes a single TLS certificate.
+   * * `CertificateMap` which describes a collection of certificates that can be
+   * attached to a target resource.
+   * * `CertificateMapEntry` which describes a single configuration entry that
+   * consists of a SNI and a group of certificates. It's a subresource of
+   * CertificateMap.
+   * Certificate, CertificateMap and CertificateMapEntry IDs
+   * have to match "^[a-z0-9-]{1,63}$" regexp, which means that
+   * - only lower case letters, digits, and hyphen are allowed
+   * - length of the resource ID has to be in [1,63] range.
+   * Provides methods to manage Cloud Certificate Manager entities.
+   * 
+ */ + public static final class CertificateManagerFutureStub extends io.grpc.stub.AbstractFutureStub { + private CertificateManagerFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CertificateManagerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CertificateManagerFutureStub(channel, callOptions); + } + + /** + *
+     * Lists Certificates in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listCertificates( + com.google.cloud.certificatemanager.v1.ListCertificatesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCertificatesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single Certificate.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getCertificate( + com.google.cloud.certificatemanager.v1.GetCertificateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCertificateMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new Certificate in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createCertificate( + com.google.cloud.certificatemanager.v1.CreateCertificateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCertificateMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a Certificate.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateCertificate( + com.google.cloud.certificatemanager.v1.UpdateCertificateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCertificateMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single Certificate.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteCertificate( + com.google.cloud.certificatemanager.v1.DeleteCertificateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCertificateMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists CertificateMaps in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listCertificateMaps( + com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCertificateMapsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single CertificateMap.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getCertificateMap( + com.google.cloud.certificatemanager.v1.GetCertificateMapRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCertificateMapMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new CertificateMap in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createCertificateMap( + com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCertificateMapMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a CertificateMap.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateCertificateMap( + com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCertificateMapMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single CertificateMap. A Certificate Map can't be deleted
+     * if it contains Certificate Map Entries. Remove all the entries from
+     * the map before calling this method.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteCertificateMap( + com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCertificateMapMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists CertificateMapEntries in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listCertificateMapEntries( + com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCertificateMapEntriesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single CertificateMapEntry.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getCertificateMapEntry( + com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCertificateMapEntryMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new CertificateMapEntry in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createCertificateMapEntry( + com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCertificateMapEntryMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a CertificateMapEntry.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateCertificateMapEntry( + com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCertificateMapEntryMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single CertificateMapEntry.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteCertificateMapEntry( + com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCertificateMapEntryMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists DnsAuthorizations in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listDnsAuthorizations( + com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDnsAuthorizationsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single DnsAuthorization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getDnsAuthorization( + com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDnsAuthorizationMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new DnsAuthorization in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createDnsAuthorization( + com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDnsAuthorizationMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a DnsAuthorization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateDnsAuthorization( + com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDnsAuthorizationMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single DnsAuthorization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteDnsAuthorization( + com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDnsAuthorizationMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists CertificateIssuanceConfigs in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listCertificateIssuanceConfigs( + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCertificateIssuanceConfigsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single CertificateIssuanceConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getCertificateIssuanceConfig( + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCertificateIssuanceConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new CertificateIssuanceConfig in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createCertificateIssuanceConfig( + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCertificateIssuanceConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single CertificateIssuanceConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteCertificateIssuanceConfig( + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCertificateIssuanceConfigMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_CERTIFICATES = 0; + private static final int METHODID_GET_CERTIFICATE = 1; + private static final int METHODID_CREATE_CERTIFICATE = 2; + private static final int METHODID_UPDATE_CERTIFICATE = 3; + private static final int METHODID_DELETE_CERTIFICATE = 4; + private static final int METHODID_LIST_CERTIFICATE_MAPS = 5; + private static final int METHODID_GET_CERTIFICATE_MAP = 6; + private static final int METHODID_CREATE_CERTIFICATE_MAP = 7; + private static final int METHODID_UPDATE_CERTIFICATE_MAP = 8; + private static final int METHODID_DELETE_CERTIFICATE_MAP = 9; + private static final int METHODID_LIST_CERTIFICATE_MAP_ENTRIES = 10; + private static final int METHODID_GET_CERTIFICATE_MAP_ENTRY = 11; + private static final int METHODID_CREATE_CERTIFICATE_MAP_ENTRY = 12; + private static final int METHODID_UPDATE_CERTIFICATE_MAP_ENTRY = 13; + private static final int METHODID_DELETE_CERTIFICATE_MAP_ENTRY = 14; + private static final int METHODID_LIST_DNS_AUTHORIZATIONS = 15; + private static final int METHODID_GET_DNS_AUTHORIZATION = 16; + private static final int METHODID_CREATE_DNS_AUTHORIZATION = 17; + private static final int METHODID_UPDATE_DNS_AUTHORIZATION = 18; + private static final int METHODID_DELETE_DNS_AUTHORIZATION = 19; + private static final int METHODID_LIST_CERTIFICATE_ISSUANCE_CONFIGS = 20; + private static final int METHODID_GET_CERTIFICATE_ISSUANCE_CONFIG = 21; + private static final int METHODID_CREATE_CERTIFICATE_ISSUANCE_CONFIG = 22; + private static final int METHODID_DELETE_CERTIFICATE_ISSUANCE_CONFIG = 23; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final CertificateManagerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CertificateManagerImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_CERTIFICATES: + serviceImpl.listCertificates((com.google.cloud.certificatemanager.v1.ListCertificatesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CERTIFICATE: + serviceImpl.getCertificate((com.google.cloud.certificatemanager.v1.GetCertificateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CERTIFICATE: + serviceImpl.createCertificate((com.google.cloud.certificatemanager.v1.CreateCertificateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CERTIFICATE: + serviceImpl.updateCertificate((com.google.cloud.certificatemanager.v1.UpdateCertificateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CERTIFICATE: + serviceImpl.deleteCertificate((com.google.cloud.certificatemanager.v1.DeleteCertificateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CERTIFICATE_MAPS: + serviceImpl.listCertificateMaps((com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CERTIFICATE_MAP: + serviceImpl.getCertificateMap((com.google.cloud.certificatemanager.v1.GetCertificateMapRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CERTIFICATE_MAP: + serviceImpl.createCertificateMap((com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CERTIFICATE_MAP: + serviceImpl.updateCertificateMap((com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CERTIFICATE_MAP: + serviceImpl.deleteCertificateMap((com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CERTIFICATE_MAP_ENTRIES: + serviceImpl.listCertificateMapEntries((com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CERTIFICATE_MAP_ENTRY: + serviceImpl.getCertificateMapEntry((com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CERTIFICATE_MAP_ENTRY: + serviceImpl.createCertificateMapEntry((com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CERTIFICATE_MAP_ENTRY: + serviceImpl.updateCertificateMapEntry((com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CERTIFICATE_MAP_ENTRY: + serviceImpl.deleteCertificateMapEntry((com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DNS_AUTHORIZATIONS: + serviceImpl.listDnsAuthorizations((com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_DNS_AUTHORIZATION: + serviceImpl.getDnsAuthorization((com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_DNS_AUTHORIZATION: + serviceImpl.createDnsAuthorization((com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_DNS_AUTHORIZATION: + serviceImpl.updateDnsAuthorization((com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DNS_AUTHORIZATION: + serviceImpl.deleteDnsAuthorization((com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CERTIFICATE_ISSUANCE_CONFIGS: + serviceImpl.listCertificateIssuanceConfigs((com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CERTIFICATE_ISSUANCE_CONFIG: + serviceImpl.getCertificateIssuanceConfig((com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CERTIFICATE_ISSUANCE_CONFIG: + serviceImpl.createCertificateIssuanceConfig((com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CERTIFICATE_ISSUANCE_CONFIG: + serviceImpl.deleteCertificateIssuanceConfig((com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest) 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 CertificateManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CertificateManagerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CertificateManager"); + } + } + + private static final class CertificateManagerFileDescriptorSupplier + extends CertificateManagerBaseDescriptorSupplier { + CertificateManagerFileDescriptorSupplier() {} + } + + private static final class CertificateManagerMethodDescriptorSupplier + extends CertificateManagerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CertificateManagerMethodDescriptorSupplier(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 (CertificateManagerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CertificateManagerFileDescriptorSupplier()) + .addMethod(getListCertificatesMethod()) + .addMethod(getGetCertificateMethod()) + .addMethod(getCreateCertificateMethod()) + .addMethod(getUpdateCertificateMethod()) + .addMethod(getDeleteCertificateMethod()) + .addMethod(getListCertificateMapsMethod()) + .addMethod(getGetCertificateMapMethod()) + .addMethod(getCreateCertificateMapMethod()) + .addMethod(getUpdateCertificateMapMethod()) + .addMethod(getDeleteCertificateMapMethod()) + .addMethod(getListCertificateMapEntriesMethod()) + .addMethod(getGetCertificateMapEntryMethod()) + .addMethod(getCreateCertificateMapEntryMethod()) + .addMethod(getUpdateCertificateMapEntryMethod()) + .addMethod(getDeleteCertificateMapEntryMethod()) + .addMethod(getListDnsAuthorizationsMethod()) + .addMethod(getGetDnsAuthorizationMethod()) + .addMethod(getCreateDnsAuthorizationMethod()) + .addMethod(getUpdateDnsAuthorizationMethod()) + .addMethod(getDeleteDnsAuthorizationMethod()) + .addMethod(getListCertificateIssuanceConfigsMethod()) + .addMethod(getGetCertificateIssuanceConfigMethod()) + .addMethod(getCreateCertificateIssuanceConfigMethod()) + .addMethod(getDeleteCertificateIssuanceConfigMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/Certificate.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/Certificate.java similarity index 57% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/Certificate.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/Certificate.java index d6bb4d2681c9..dec57a6baf7d 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/Certificate.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/Certificate.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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Defines TLS certificate.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.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.certificatemanager.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_ = ""; description_ = ""; @@ -47,239 +29,51 @@ 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) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - 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 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 42: - { - com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.Builder - subBuilder = null; - if (typeCase_ == 5) { - subBuilder = - ((com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) - type_) - .toBuilder(); - } - type_ = - input.readMessage( - com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) - type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 5; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - sanDnsnames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - sanDnsnames_.add(s); - break; - } - case 58: - { - 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 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - - pemCertificate_ = s; - break; - } - case 90: - { - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.Builder - subBuilder = null; - if (typeCase_ == 11) { - subBuilder = - ((com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) type_) - .toBuilder(); - } - type_ = - input.readMessage( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 11; - break; - } - case 96: - { - int rawValue = input.readEnum(); - - scope_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - sanDnsnames_ = sanDnsnames_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_Certificate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_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 4: 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.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_Certificate_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.Certificate.class, - com.google.cloud.certificatemanager.v1.Certificate.Builder.class); + com.google.cloud.certificatemanager.v1.Certificate.class, com.google.cloud.certificatemanager.v1.Certificate.Builder.class); } /** - * - * *
    * Certificate scope.
    * 
* * Protobuf enum {@code google.cloud.certificatemanager.v1.Certificate.Scope} */ - public enum Scope implements com.google.protobuf.ProtocolMessageEnum { + public enum Scope + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Certificates with default scope are served from core Google data centers.
      * If unsure, choose this option.
@@ -289,8 +83,6 @@ public enum Scope implements com.google.protobuf.ProtocolMessageEnum {
      */
     DEFAULT(0),
     /**
-     *
-     *
      * 
      * Certificates with scope EDGE_CACHE are special-purposed certificates,
      * served from non-core Google data centers.
@@ -303,8 +95,6 @@ public enum Scope implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Certificates with default scope are served from core Google data centers.
      * If unsure, choose this option.
@@ -314,8 +104,6 @@ public enum Scope implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DEFAULT_VALUE = 0;
     /**
-     *
-     *
      * 
      * Certificates with scope EDGE_CACHE are special-purposed certificates,
      * served from non-core Google data centers.
@@ -325,6 +113,7 @@ public enum Scope implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int EDGE_CACHE_VALUE = 1;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -349,49 +138,48 @@ public static Scope valueOf(int value) {
      */
     public static Scope forNumber(int value) {
       switch (value) {
-        case 0:
-          return DEFAULT;
-        case 1:
-          return EDGE_CACHE;
-        default:
-          return null;
+        case 0: return DEFAULT;
+        case 1: return EDGE_CACHE;
+        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<
+        Scope> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Scope findValueByNumber(int number) {
+              return Scope.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Scope findValueByNumber(int number) {
-            return Scope.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.certificatemanager.v1.Certificate.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.certificatemanager.v1.Certificate.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Scope[] VALUES = values();
 
-    public static Scope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Scope 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;
@@ -408,66 +196,53 @@ private Scope(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.certificatemanager.v1.Certificate.Scope)
   }
 
-  public interface SelfManagedCertificateOrBuilder
-      extends
+  public interface SelfManagedCertificateOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Input only. The PEM-encoded certificate chain.
      * Leaf certificate comes first, followed by intermediate ones if any.
      * 
* * string pem_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The pemCertificate. */ java.lang.String getPemCertificate(); /** - * - * *
      * Input only. The PEM-encoded certificate chain.
      * Leaf certificate comes first, followed by intermediate ones if any.
      * 
* * string pem_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for pemCertificate. */ - com.google.protobuf.ByteString getPemCertificateBytes(); + com.google.protobuf.ByteString + getPemCertificateBytes(); /** - * - * *
      * Input only. The PEM-encoded private key of the leaf certificate.
      * 
* * string pem_private_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The pemPrivateKey. */ java.lang.String getPemPrivateKey(); /** - * - * *
      * Input only. The PEM-encoded private key of the leaf certificate.
      * 
* * string pem_private_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for pemPrivateKey. */ - com.google.protobuf.ByteString getPemPrivateKeyBytes(); + com.google.protobuf.ByteString + getPemPrivateKeyBytes(); } /** - * - * *
    * Certificate data for a SelfManaged Certificate.
    * SelfManaged Certificates are uploaded by the user. Updating such
@@ -476,16 +251,15 @@ public interface SelfManagedCertificateOrBuilder
    *
    * Protobuf type {@code google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate}
    */
-  public static final class SelfManagedCertificate extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class SelfManagedCertificate extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate)
       SelfManagedCertificateOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use SelfManagedCertificate.newBuilder() to construct.
     private SelfManagedCertificate(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private SelfManagedCertificate() {
       pemCertificate_ = "";
       pemPrivateKey_ = "";
@@ -493,96 +267,38 @@ private SelfManagedCertificate() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new SelfManagedCertificate();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
-    private SelfManagedCertificate(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      this();
-      if (extensionRegistry == null) {
-        throw new java.lang.NullPointerException();
-      }
-      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
-          com.google.protobuf.UnknownFieldSet.newBuilder();
-      try {
-        boolean done = false;
-        while (!done) {
-          int tag = input.readTag();
-          switch (tag) {
-            case 0:
-              done = true;
-              break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-
-                pemCertificate_ = s;
-                break;
-              }
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-
-                pemPrivateKey_ = s;
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
-              }
-          }
-        }
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(this);
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
-      } finally {
-        this.unknownFields = unknownFields.build();
-        makeExtensionsImmutable();
-      }
-    }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.certificatemanager.v1.CertificateManagerProto
-          .internal_static_google_cloud_certificatemanager_v1_Certificate_SelfManagedCertificate_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_SelfManagedCertificate_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.certificatemanager.v1.CertificateManagerProto
-          .internal_static_google_cloud_certificatemanager_v1_Certificate_SelfManagedCertificate_fieldAccessorTable
+      return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_SelfManagedCertificate_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.class,
-              com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.Builder
-                  .class);
+              com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.class, com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.Builder.class);
     }
 
     public static final int PEM_CERTIFICATE_FIELD_NUMBER = 1;
     private volatile java.lang.Object pemCertificate_;
     /**
-     *
-     *
      * 
      * Input only. The PEM-encoded certificate chain.
      * Leaf certificate comes first, followed by intermediate ones if any.
      * 
* * string pem_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The pemCertificate. */ @java.lang.Override @@ -591,30 +307,30 @@ 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; } } /** - * - * *
      * Input only. The PEM-encoded certificate chain.
      * Leaf certificate comes first, followed by intermediate ones if any.
      * 
* * string pem_certificate = 1 [(.google.api.field_behavior) = INPUT_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 { @@ -625,14 +341,11 @@ public com.google.protobuf.ByteString getPemCertificateBytes() { public static final int PEM_PRIVATE_KEY_FIELD_NUMBER = 2; private volatile java.lang.Object pemPrivateKey_; /** - * - * *
      * Input only. The PEM-encoded private key of the leaf certificate.
      * 
* * string pem_private_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The pemPrivateKey. */ @java.lang.Override @@ -641,29 +354,29 @@ public java.lang.String getPemPrivateKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemPrivateKey_ = s; return s; } } /** - * - * *
      * Input only. The PEM-encoded private key of the leaf certificate.
      * 
* * string pem_private_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for pemPrivateKey. */ @java.lang.Override - public com.google.protobuf.ByteString getPemPrivateKeyBytes() { + public com.google.protobuf.ByteString + getPemPrivateKeyBytes() { java.lang.Object ref = pemPrivateKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pemPrivateKey_ = b; return b; } else { @@ -672,7 +385,6 @@ public com.google.protobuf.ByteString getPemPrivateKeyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -684,14 +396,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(pemCertificate_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pemCertificate_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pemPrivateKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pemPrivateKey_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -706,7 +419,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pemPrivateKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pemPrivateKey_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -714,18 +427,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.certificatemanager.v1.Certificate.SelfManagedCertificate)) { + if (!(obj instanceof com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate other = - (com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) obj; + com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate other = (com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) obj; - if (!getPemCertificate().equals(other.getPemCertificate())) return false; - if (!getPemPrivateKey().equals(other.getPemPrivateKey())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getPemCertificate() + .equals(other.getPemCertificate())) return false; + if (!getPemPrivateKey() + .equals(other.getPemPrivateKey())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -740,106 +453,93 @@ public int hashCode() { hash = (53 * hash) + getPemCertificate().hashCode(); hash = (37 * hash) + PEM_PRIVATE_KEY_FIELD_NUMBER; hash = (53 * hash) + getPemPrivateKey().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate 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.certificatemanager.v1.Certificate.SelfManagedCertificate - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - 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.certificatemanager.v1.Certificate.SelfManagedCertificate 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.certificatemanager.v1.Certificate.SelfManagedCertificate - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - 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.certificatemanager.v1.Certificate.SelfManagedCertificate 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.certificatemanager.v1.Certificate.SelfManagedCertificate prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -849,8 +549,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Certificate data for a SelfManaged Certificate.
      * SelfManaged Certificates are uploaded by the user. Updating such
@@ -859,42 +557,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate)
         com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificateOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.certificatemanager.v1.CertificateManagerProto
-            .internal_static_google_cloud_certificatemanager_v1_Certificate_SelfManagedCertificate_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_SelfManagedCertificate_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.certificatemanager.v1.CertificateManagerProto
-            .internal_static_google_cloud_certificatemanager_v1_Certificate_SelfManagedCertificate_fieldAccessorTable
+        return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_SelfManagedCertificate_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.class,
-                com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.Builder
-                    .class);
+                com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.class, com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.newBuilder()
+      // Construct using com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.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) {}
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -906,22 +595,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.certificatemanager.v1.CertificateManagerProto
-            .internal_static_google_cloud_certificatemanager_v1_Certificate_SelfManagedCertificate_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_SelfManagedCertificate_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate
-          getDefaultInstanceForType() {
-        return com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate
-            .getDefaultInstance();
+      public com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate getDefaultInstanceForType() {
+        return com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate build() {
-        com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate result =
-            buildPartial();
+        com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -929,10 +615,8 @@ public com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate
       }
 
       @java.lang.Override
-      public com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate
-          buildPartial() {
-        com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate result =
-            new com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate(this);
+      public com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate buildPartial() {
+        com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate result = new com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate(this);
         result.pemCertificate_ = pemCertificate_;
         result.pemPrivateKey_ = pemPrivateKey_;
         onBuilt();
@@ -943,54 +627,46 @@ public com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.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.certificatemanager.v1.Certificate.SelfManagedCertificate) {
-          return mergeFrom(
-              (com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) other);
+        if (other instanceof com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) {
+          return mergeFrom((com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate other) {
-        if (other
-            == com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate other) {
+        if (other == com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.getDefaultInstance()) return this;
         if (!other.getPemCertificate().isEmpty()) {
           pemCertificate_ = other.pemCertificate_;
           onChanged();
@@ -999,7 +675,7 @@ public Builder mergeFrom(
           pemPrivateKey_ = other.pemPrivateKey_;
           onChanged();
         }
-        this.mergeUnknownFields(other.unknownFields);
+        this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
         return this;
       }
@@ -1014,40 +690,58 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate parsedMessage =
-            null;
+        if (extensionRegistry == null) {
+          throw new java.lang.NullPointerException();
+        }
         try {
-          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+          boolean done = false;
+          while (!done) {
+            int tag = input.readTag();
+            switch (tag) {
+              case 0:
+                done = true;
+                break;
+              case 10: {
+                pemCertificate_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+              case 18: {
+                pemPrivateKey_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 18
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
+            } // switch (tag)
+          } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate)
-                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
-          if (parsedMessage != null) {
-            mergeFrom(parsedMessage);
-          }
-        }
+          onChanged();
+        } // finally
         return this;
       }
 
       private java.lang.Object pemCertificate_ = "";
       /**
-       *
-       *
        * 
        * Input only. The PEM-encoded certificate chain.
        * Leaf certificate comes first, followed by intermediate ones if any.
        * 
* * string pem_certificate = 1 [(.google.api.field_behavior) = INPUT_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; @@ -1056,22 +750,21 @@ public java.lang.String getPemCertificate() { } } /** - * - * *
        * Input only. The PEM-encoded certificate chain.
        * Leaf certificate comes first, followed by intermediate ones if any.
        * 
* * string pem_certificate = 1 [(.google.api.field_behavior) = INPUT_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 { @@ -1079,64 +772,57 @@ public com.google.protobuf.ByteString getPemCertificateBytes() { } } /** - * - * *
        * Input only. The PEM-encoded certificate chain.
        * Leaf certificate comes first, followed by intermediate ones if any.
        * 
* * string pem_certificate = 1 [(.google.api.field_behavior) = INPUT_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; } /** - * - * *
        * Input only. The PEM-encoded certificate chain.
        * Leaf certificate comes first, followed by intermediate ones if any.
        * 
* * string pem_certificate = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPemCertificate() { - + pemCertificate_ = getDefaultInstance().getPemCertificate(); onChanged(); return this; } /** - * - * *
        * Input only. The PEM-encoded certificate chain.
        * Leaf certificate comes first, followed by intermediate ones if any.
        * 
* * string pem_certificate = 1 [(.google.api.field_behavior) = INPUT_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; @@ -1144,20 +830,18 @@ public Builder setPemCertificateBytes(com.google.protobuf.ByteString value) { private java.lang.Object pemPrivateKey_ = ""; /** - * - * *
        * Input only. The PEM-encoded private key of the leaf certificate.
        * 
* * string pem_private_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The pemPrivateKey. */ public java.lang.String getPemPrivateKey() { java.lang.Object ref = pemPrivateKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pemPrivateKey_ = s; return s; @@ -1166,21 +850,20 @@ public java.lang.String getPemPrivateKey() { } } /** - * - * *
        * Input only. The PEM-encoded private key of the leaf certificate.
        * 
* * string pem_private_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for pemPrivateKey. */ - public com.google.protobuf.ByteString getPemPrivateKeyBytes() { + public com.google.protobuf.ByteString + getPemPrivateKeyBytes() { java.lang.Object ref = pemPrivateKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pemPrivateKey_ = b; return b; } else { @@ -1188,66 +871,58 @@ public com.google.protobuf.ByteString getPemPrivateKeyBytes() { } } /** - * - * *
        * Input only. The PEM-encoded private key of the leaf certificate.
        * 
* * string pem_private_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The pemPrivateKey to set. * @return This builder for chaining. */ - public Builder setPemPrivateKey(java.lang.String value) { + public Builder setPemPrivateKey( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pemPrivateKey_ = value; onChanged(); return this; } /** - * - * *
        * Input only. The PEM-encoded private key of the leaf certificate.
        * 
* * string pem_private_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPemPrivateKey() { - + pemPrivateKey_ = getDefaultInstance().getPemPrivateKey(); onChanged(); return this; } /** - * - * *
        * Input only. The PEM-encoded private key of the leaf certificate.
        * 
* * string pem_private_key = 2 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The bytes for pemPrivateKey to set. * @return This builder for chaining. */ - public Builder setPemPrivateKeyBytes(com.google.protobuf.ByteString value) { + public Builder setPemPrivateKeyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pemPrivateKey_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1260,33 +935,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) - private static final com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate(); + DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate(); } - public static com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SelfManagedCertificate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SelfManagedCertificate(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SelfManagedCertificate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1298,455 +981,301 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ManagedCertificateOrBuilder - extends + public interface ManagedCertificateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) com.google.protobuf.MessageOrBuilder { /** - * - * *
-     * Immutable. The domains for which a managed SSL certificate will be generated.
-     * Wildcard domains are only supported with DNS challenge resolution.
+     * Immutable. The domains for which a managed SSL certificate will be
+     * generated. Wildcard domains are only supported with DNS challenge
+     * resolution.
      * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return A list containing the domains. */ - java.util.List getDomainsList(); + java.util.List + getDomainsList(); /** - * - * *
-     * Immutable. The domains for which a managed SSL certificate will be generated.
-     * Wildcard domains are only supported with DNS challenge resolution.
+     * Immutable. The domains for which a managed SSL certificate will be
+     * generated. Wildcard domains are only supported with DNS challenge
+     * resolution.
      * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The count of domains. */ int getDomainsCount(); /** - * - * *
-     * Immutable. The domains for which a managed SSL certificate will be generated.
-     * Wildcard domains are only supported with DNS challenge resolution.
+     * Immutable. The domains for which a managed SSL certificate will be
+     * generated. Wildcard domains are only supported with DNS challenge
+     * resolution.
      * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param index The index of the element to return. * @return The domains at the given index. */ java.lang.String getDomains(int index); /** - * - * *
-     * Immutable. The domains for which a managed SSL certificate will be generated.
-     * Wildcard domains are only supported with DNS challenge resolution.
+     * Immutable. The domains for which a managed SSL certificate will be
+     * generated. Wildcard domains are only supported with DNS challenge
+     * resolution.
      * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param index The index of the value to return. * @return The bytes of the domains at the given index. */ - com.google.protobuf.ByteString getDomainsBytes(int index); + com.google.protobuf.ByteString + getDomainsBytes(int index); /** - * - * *
-     * Immutable. Authorizations that will be used for performing domain authorization.
+     * Immutable. Authorizations that will be used for performing domain
+     * authorization.
      * 
* - * - * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return A list containing the dnsAuthorizations. */ - java.util.List getDnsAuthorizationsList(); + java.util.List + getDnsAuthorizationsList(); /** - * - * *
-     * Immutable. Authorizations that will be used for performing domain authorization.
+     * Immutable. Authorizations that will be used for performing domain
+     * authorization.
      * 
* - * - * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The count of dnsAuthorizations. */ int getDnsAuthorizationsCount(); /** - * - * *
-     * Immutable. Authorizations that will be used for performing domain authorization.
+     * Immutable. Authorizations that will be used for performing domain
+     * authorization.
      * 
* - * - * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The dnsAuthorizations at the given index. */ java.lang.String getDnsAuthorizations(int index); /** - * - * *
-     * Immutable. Authorizations that will be used for performing domain authorization.
+     * Immutable. Authorizations that will be used for performing domain
+     * authorization.
      * 
* - * - * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the dnsAuthorizations at the given index. */ - com.google.protobuf.ByteString getDnsAuthorizationsBytes(int index); + com.google.protobuf.ByteString + getDnsAuthorizationsBytes(int index); /** + *
+     * The resource name for a
+     * [CertificateIssuanceConfig][google.cloud.certificatemanager.v1.CertificateIssuanceConfig]
+     * used to configure private PKI certificates in the format
+     * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * If this field is not set, the certificates will instead be publicly
+     * signed as documented at
+     * https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
+     * 
* + * string issuance_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * @return The issuanceConfig. + */ + java.lang.String getIssuanceConfig(); + /** + *
+     * The resource name for a
+     * [CertificateIssuanceConfig][google.cloud.certificatemanager.v1.CertificateIssuanceConfig]
+     * used to configure private PKI certificates in the format
+     * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * If this field is not set, the certificates will instead be publicly
+     * signed as documented at
+     * https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
+     * 
* + * string issuance_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * @return The bytes for issuanceConfig. + */ + com.google.protobuf.ByteString + getIssuanceConfigBytes(); + + /** *
      * Output only. State of the managed certificate resource.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
      * Output only. State of the managed certificate resource.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State getState(); /** - * - * *
-     * Information about issues with provisioning a Managed Certificate.
+     * Output only. Information about issues with provisioning a Managed
+     * Certificate.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the provisioningIssue field is set. */ boolean hasProvisioningIssue(); /** - * - * *
-     * Information about issues with provisioning a Managed Certificate.
+     * Output only. Information about issues with provisioning a Managed
+     * Certificate.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The provisioningIssue. */ - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue - getProvisioningIssue(); + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue getProvisioningIssue(); /** - * - * *
-     * Information about issues with provisioning a Managed Certificate.
+     * Output only. Information about issues with provisioning a Managed
+     * Certificate.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssueOrBuilder - getProvisioningIssueOrBuilder(); + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssueOrBuilder getProvisioningIssueOrBuilder(); /** - * - * *
-     * Output only. Detailed state of the latest authorization attempt for each domain
-     * specified for managed certificate resource.
+     * Output only. Detailed state of the latest authorization attempt for each
+     * domain specified for managed certificate resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List< - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo> + java.util.List getAuthorizationAttemptInfoList(); /** - * - * *
-     * Output only. Detailed state of the latest authorization attempt for each domain
-     * specified for managed certificate resource.
+     * Output only. Detailed state of the latest authorization attempt for each
+     * domain specified for managed certificate resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo - getAuthorizationAttemptInfo(int index); + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo getAuthorizationAttemptInfo(int index); /** - * - * *
-     * Output only. Detailed state of the latest authorization attempt for each domain
-     * specified for managed certificate resource.
+     * Output only. Detailed state of the latest authorization attempt for each
+     * domain specified for managed certificate resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getAuthorizationAttemptInfoCount(); /** - * - * *
-     * Output only. Detailed state of the latest authorization attempt for each domain
-     * specified for managed certificate resource.
+     * Output only. Detailed state of the latest authorization attempt for each
+     * domain specified for managed certificate resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List< - ? extends - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfoOrBuilder> + java.util.List getAuthorizationAttemptInfoOrBuilderList(); /** - * - * *
-     * Output only. Detailed state of the latest authorization attempt for each domain
-     * specified for managed certificate resource.
+     * Output only. Detailed state of the latest authorization attempt for each
+     * domain specified for managed certificate resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfoOrBuilder - getAuthorizationAttemptInfoOrBuilder(int index); + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfoOrBuilder getAuthorizationAttemptInfoOrBuilder( + int index); } /** - * - * - *
-   * Configuration and state of a Managed Certificate.
-   * Certificate Manager provisions and renews Managed Certificates
-   * automatically, for as long as it's authorized to do so.
-   * 
- * - * Protobuf type {@code google.cloud.certificatemanager.v1.Certificate.ManagedCertificate} - */ - public static final class ManagedCertificate extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) - ManagedCertificateOrBuilder { - private static final long serialVersionUID = 0L; - // Use ManagedCertificate.newBuilder() to construct. - private ManagedCertificate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ManagedCertificate() { - domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; - dnsAuthorizations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - state_ = 0; - authorizationAttemptInfo_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ManagedCertificate(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ManagedCertificate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - domains_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - domains_.add(s); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - dnsAuthorizations_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - dnsAuthorizations_.add(s); - break; - } - case 26: - { - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue.Builder - subBuilder = null; - if (provisioningIssue_ != null) { - subBuilder = provisioningIssue_.toBuilder(); - } - provisioningIssue_ = - input.readMessage( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(provisioningIssue_); - provisioningIssue_ = subBuilder.buildPartial(); - } - - break; - } - case 32: - { - int rawValue = input.readEnum(); + *
+   * Configuration and state of a Managed Certificate.
+   * Certificate Manager provisions and renews Managed Certificates
+   * automatically, for as long as it's authorized to do so.
+   * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.Certificate.ManagedCertificate} + */ + public static final class ManagedCertificate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) + ManagedCertificateOrBuilder { + private static final long serialVersionUID = 0L; + // Use ManagedCertificate.newBuilder() to construct. + private ManagedCertificate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ManagedCertificate() { + domains_ = com.google.protobuf.LazyStringArrayList.EMPTY; + dnsAuthorizations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + issuanceConfig_ = ""; + state_ = 0; + authorizationAttemptInfo_ = java.util.Collections.emptyList(); + } - state_ = rawValue; - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - authorizationAttemptInfo_ = - new java.util.ArrayList< - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo>(); - mutable_bitField0_ |= 0x00000004; - } - authorizationAttemptInfo_.add( - input.readMessage( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - domains_ = domains_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - dnsAuthorizations_ = dnsAuthorizations_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - authorizationAttemptInfo_ = - java.util.Collections.unmodifiableList(authorizationAttemptInfo_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ManagedCertificate(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_descriptor; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.class, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.Builder.class); + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.class, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.Builder.class); } /** * Protobuf enum {@code google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** STATE_UNSPECIFIED = 0; */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + * STATE_UNSPECIFIED = 0; + */ STATE_UNSPECIFIED(0), /** - * - * *
        * Certificate Manager attempts to provision or renew the certificate.
        * If the process takes longer than expected, consult the
@@ -1757,8 +1286,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
        */
       PROVISIONING(1),
       /**
-       *
-       *
        * 
        * Multiple certificate provisioning attempts failed and Certificate
        * Manager gave up. To try again, delete and create a new managed
@@ -1770,8 +1297,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
        */
       FAILED(2),
       /**
-       *
-       *
        * 
        * The certificate management is working, and a certificate has been
        * provisioned.
@@ -1783,11 +1308,11 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
       UNRECOGNIZED(-1),
       ;
 
-      /** STATE_UNSPECIFIED = 0; */
+      /**
+       * STATE_UNSPECIFIED = 0;
+       */
       public static final int STATE_UNSPECIFIED_VALUE = 0;
       /**
-       *
-       *
        * 
        * Certificate Manager attempts to provision or renew the certificate.
        * If the process takes longer than expected, consult the
@@ -1798,8 +1323,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int PROVISIONING_VALUE = 1;
       /**
-       *
-       *
        * 
        * Multiple certificate provisioning attempts failed and Certificate
        * Manager gave up. To try again, delete and create a new managed
@@ -1811,8 +1334,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int FAILED_VALUE = 2;
       /**
-       *
-       *
        * 
        * The certificate management is working, and a certificate has been
        * provisioned.
@@ -1822,6 +1343,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int ACTIVE_VALUE = 3;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -1846,53 +1368,50 @@ public static State valueOf(int value) {
        */
       public static State forNumber(int value) {
         switch (value) {
-          case 0:
-            return STATE_UNSPECIFIED;
-          case 1:
-            return PROVISIONING;
-          case 2:
-            return FAILED;
-          case 3:
-            return ACTIVE;
-          default:
-            return null;
+          case 0: return STATE_UNSPECIFIED;
+          case 1: return PROVISIONING;
+          case 2: return FAILED;
+          case 3: return ACTIVE;
+          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.certificatemanager.v1.Certificate.ManagedCertificate.getDescriptor()
-            .getEnumTypes()
-            .get(0);
+      public static final com.google.protobuf.Descriptors.EnumDescriptor
+          getDescriptor() {
+        return com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.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;
@@ -1909,90 +1428,69 @@ private State(int value) {
       // @@protoc_insertion_point(enum_scope:google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State)
     }
 
-    public interface ProvisioningIssueOrBuilder
-        extends
+    public interface ProvisioningIssueOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue)
         com.google.protobuf.MessageOrBuilder {
 
       /**
-       *
-       *
        * 
-       * Reason for provisioning failures.
+       * Output only. Reason for provisioning failures.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for reason. */ int getReasonValue(); /** - * - * *
-       * Reason for provisioning failures.
+       * Output only. Reason for provisioning failures.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The reason. */ - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason - getReason(); + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason getReason(); /** - * - * *
-       * Human readable explanation about the issue. Provided to help address
-       * the configuration issues.
-       * Not guaranteed to be stable. For programmatic access use Reason enum.
+       * Output only. Human readable explanation about the issue. Provided to
+       * help address the configuration issues. Not guaranteed to be stable. For
+       * programmatic access use Reason enum.
        * 
* - * string details = 2; - * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The details. */ java.lang.String getDetails(); /** - * - * *
-       * Human readable explanation about the issue. Provided to help address
-       * the configuration issues.
-       * Not guaranteed to be stable. For programmatic access use Reason enum.
+       * Output only. Human readable explanation about the issue. Provided to
+       * help address the configuration issues. Not guaranteed to be stable. For
+       * programmatic access use Reason enum.
        * 
* - * string details = 2; - * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for details. */ - com.google.protobuf.ByteString getDetailsBytes(); + com.google.protobuf.ByteString + getDetailsBytes(); } /** - * - * *
      * Information about issues with provisioning a Managed Certificate.
      * 
* - * Protobuf type {@code - * google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue} + * Protobuf type {@code google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue} */ - public static final class ProvisioningIssue extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ProvisioningIssue extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue) ProvisioningIssueOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProvisioningIssue.newBuilder() to construct. private ProvisioningIssue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ProvisioningIssue() { reason_ = 0; details_ = ""; @@ -2000,96 +1498,39 @@ private ProvisioningIssue() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProvisioningIssue(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private ProvisioningIssue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - reason_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - details_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_ProvisioningIssue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_ProvisioningIssue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_ProvisioningIssue_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_ProvisioningIssue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue.class, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue.Builder.class); + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.class, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Builder.class); } /** - * Protobuf enum {@code - * google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason} + * Protobuf enum {@code google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason} */ - public enum Reason implements com.google.protobuf.ProtocolMessageEnum { - /** REASON_UNSPECIFIED = 0; */ + public enum Reason + implements com.google.protobuf.ProtocolMessageEnum { + /** + * REASON_UNSPECIFIED = 0; + */ REASON_UNSPECIFIED(0), /** - * - * *
          * Certificate provisioning failed due to an issue with one or more of
          * the domains on the certificate.
@@ -2101,8 +1542,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
          */
         AUTHORIZATION_ISSUE(1),
         /**
-         *
-         *
          * 
          * Exceeded Certificate Authority quotas or internal rate limits of the
          * system. Provisioning may take longer to complete.
@@ -2114,11 +1553,11 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
         UNRECOGNIZED(-1),
         ;
 
-        /** REASON_UNSPECIFIED = 0; */
+        /**
+         * REASON_UNSPECIFIED = 0;
+         */
         public static final int REASON_UNSPECIFIED_VALUE = 0;
         /**
-         *
-         *
          * 
          * Certificate provisioning failed due to an issue with one or more of
          * the domains on the certificate.
@@ -2130,8 +1569,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
          */
         public static final int AUTHORIZATION_ISSUE_VALUE = 1;
         /**
-         *
-         *
          * 
          * Exceeded Certificate Authority quotas or internal rate limits of the
          * system. Provisioning may take longer to complete.
@@ -2141,6 +1578,7 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
          */
         public static final int RATE_LIMITED_VALUE = 2;
 
+
         public final int getNumber() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalArgumentException(
@@ -2165,53 +1603,49 @@ public static Reason valueOf(int value) {
          */
         public static Reason forNumber(int value) {
           switch (value) {
-            case 0:
-              return REASON_UNSPECIFIED;
-            case 1:
-              return AUTHORIZATION_ISSUE;
-            case 2:
-              return RATE_LIMITED;
-            default:
-              return null;
+            case 0: return REASON_UNSPECIFIED;
+            case 1: return AUTHORIZATION_ISSUE;
+            case 2: return RATE_LIMITED;
+            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<
+            Reason> internalValueMap =
+              new com.google.protobuf.Internal.EnumLiteMap() {
+                public Reason findValueByNumber(int number) {
+                  return Reason.forNumber(number);
+                }
+              };
 
-        private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public Reason findValueByNumber(int number) {
-                return Reason.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.certificatemanager.v1.Certificate.ManagedCertificate
-              .ProvisioningIssue.getDescriptor()
-              .getEnumTypes()
-              .get(0);
+        public static final com.google.protobuf.Descriptors.EnumDescriptor
+            getDescriptor() {
+          return com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.getDescriptor().getEnumTypes().get(0);
         }
 
         private static final Reason[] VALUES = values();
 
-        public static Reason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+        public static Reason 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;
@@ -2231,64 +1665,40 @@ private Reason(int value) {
       public static final int REASON_FIELD_NUMBER = 1;
       private int reason_;
       /**
-       *
-       *
        * 
-       * Reason for provisioning failures.
+       * Output only. Reason for provisioning failures.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for reason. */ - @java.lang.Override - public int getReasonValue() { + @java.lang.Override public int getReasonValue() { return reason_; } /** - * - * *
-       * Reason for provisioning failures.
+       * Output only. Reason for provisioning failures.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The reason. */ - @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue - .Reason - getReason() { + @java.lang.Override public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason getReason() { @SuppressWarnings("deprecation") - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue - .Reason - result = - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue.Reason.valueOf(reason_); - return result == null - ? com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue.Reason.UNRECOGNIZED - : result; + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason result = com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason.valueOf(reason_); + return result == null ? com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason.UNRECOGNIZED : result; } public static final int DETAILS_FIELD_NUMBER = 2; private volatile java.lang.Object details_; /** - * - * *
-       * Human readable explanation about the issue. Provided to help address
-       * the configuration issues.
-       * Not guaranteed to be stable. For programmatic access use Reason enum.
+       * Output only. Human readable explanation about the issue. Provided to
+       * help address the configuration issues. Not guaranteed to be stable. For
+       * programmatic access use Reason enum.
        * 
* - * string details = 2; - * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The details. */ @java.lang.Override @@ -2297,31 +1707,31 @@ public java.lang.String getDetails() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; } } /** - * - * *
-       * Human readable explanation about the issue. Provided to help address
-       * the configuration issues.
-       * Not guaranteed to be stable. For programmatic access use Reason enum.
+       * Output only. Human readable explanation about the issue. Provided to
+       * help address the configuration issues. Not guaranteed to be stable. For
+       * programmatic access use Reason enum.
        * 
* - * string details = 2; - * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for details. */ @java.lang.Override - public com.google.protobuf.ByteString getDetailsBytes() { + public com.google.protobuf.ByteString + getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); details_ = b; return b; } else { @@ -2330,7 +1740,6 @@ public com.google.protobuf.ByteString getDetailsBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2342,17 +1751,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (reason_ - != com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue.Reason.REASON_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (reason_ != com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason.REASON_UNSPECIFIED.getNumber()) { output.writeEnum(1, reason_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, details_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2361,16 +1768,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (reason_ - != com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue.Reason.REASON_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, reason_); + if (reason_ != com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason.REASON_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, reason_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, details_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -2378,23 +1783,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.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue)) { + if (!(obj instanceof com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue - other = - (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue) - obj; + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue other = (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue) obj; if (reason_ != other.reason_) return false; - if (!getDetails().equals(other.getDetails())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getDetails() + .equals(other.getDetails())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2409,121 +1808,93 @@ public int hashCode() { hash = (53 * hash) + reason_; hash = (37 * hash) + DETAILS_FIELD_NUMBER; hash = (53 * hash) + getDetails().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue 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.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue - 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.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue 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.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue - 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.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue 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.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue - prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2533,53 +1904,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Information about issues with provisioning a Managed Certificate.
        * 
* - * Protobuf type {@code - * google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue} + * Protobuf type {@code google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue) - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_ProvisioningIssue_descriptor; + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_ProvisioningIssue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_ProvisioningIssue_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_ProvisioningIssue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue.class, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue.Builder.class); + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.class, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Builder.class); } - // Construct using - // com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.newBuilder() + // Construct using com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -2591,25 +1948,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_ProvisioningIssue_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_ProvisioningIssue_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue - getDefaultInstanceForType() { - return com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue.getDefaultInstance(); + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue - build() { - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue - result = buildPartial(); + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue build() { + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2617,13 +1968,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue - buildPartial() { - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue - result = - new com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue(this); + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue buildPartial() { + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue result = new com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue(this); result.reason_ = reason_; result.details_ = details_; onBuilt(); @@ -2634,59 +1980,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.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue) { - return mergeFrom( - (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue) - other); + if (other instanceof com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue) { + return mergeFrom((com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue - other) { - if (other - == com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue other) { + if (other == com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.getDefaultInstance()) return this; if (other.reason_ != 0) { setReasonValue(other.getReasonValue()); } @@ -2694,7 +2027,7 @@ public Builder mergeFrom( details_ = other.details_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2709,131 +2042,112 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue - parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + reason_ = input.readEnum(); + + break; + } // case 8 + case 18: { + details_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int reason_ = 0; /** - * - * *
-         * Reason for provisioning failures.
+         * Output only. Reason for provisioning failures.
          * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for reason. */ - @java.lang.Override - public int getReasonValue() { + @java.lang.Override public int getReasonValue() { return reason_; } /** - * - * *
-         * Reason for provisioning failures.
+         * Output only. Reason for provisioning failures.
          * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @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; } /** - * - * *
-         * Reason for provisioning failures.
+         * Output only. Reason for provisioning failures.
          * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The reason. */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue.Reason - getReason() { + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason getReason() { @SuppressWarnings("deprecation") - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue - .Reason - result = - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue.Reason.valueOf(reason_); - return result == null - ? com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue.Reason.UNRECOGNIZED - : result; + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason result = com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason.valueOf(reason_); + return result == null ? com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason.UNRECOGNIZED : result; } /** - * - * *
-         * Reason for provisioning failures.
+         * Output only. Reason for provisioning failures.
          * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The reason to set. * @return This builder for chaining. */ - public Builder setReason( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue - .Reason - value) { + public Builder setReason(com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason value) { if (value == null) { throw new NullPointerException(); } - + reason_ = value.getNumber(); onChanged(); return this; } /** - * - * *
-         * Reason for provisioning failures.
+         * Output only. Reason for provisioning failures.
          * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Reason reason = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearReason() { - + reason_ = 0; onChanged(); return this; @@ -2841,22 +2155,20 @@ public Builder clearReason() { private java.lang.Object details_ = ""; /** - * - * *
-         * Human readable explanation about the issue. Provided to help address
-         * the configuration issues.
-         * Not guaranteed to be stable. For programmatic access use Reason enum.
+         * Output only. Human readable explanation about the issue. Provided to
+         * help address the configuration issues. Not guaranteed to be stable. For
+         * programmatic access use Reason enum.
          * 
* - * string details = 2; - * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The details. */ public java.lang.String getDetails() { java.lang.Object ref = details_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; @@ -2865,23 +2177,22 @@ public java.lang.String getDetails() { } } /** - * - * *
-         * Human readable explanation about the issue. Provided to help address
-         * the configuration issues.
-         * Not guaranteed to be stable. For programmatic access use Reason enum.
+         * Output only. Human readable explanation about the issue. Provided to
+         * help address the configuration issues. Not guaranteed to be stable. For
+         * programmatic access use Reason enum.
          * 
* - * string details = 2; - * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for details. */ - public com.google.protobuf.ByteString getDetailsBytes() { + public com.google.protobuf.ByteString + getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); details_ = b; return b; } else { @@ -2889,72 +2200,64 @@ public com.google.protobuf.ByteString getDetailsBytes() { } } /** - * - * *
-         * Human readable explanation about the issue. Provided to help address
-         * the configuration issues.
-         * Not guaranteed to be stable. For programmatic access use Reason enum.
+         * Output only. Human readable explanation about the issue. Provided to
+         * help address the configuration issues. Not guaranteed to be stable. For
+         * programmatic access use Reason enum.
          * 
* - * string details = 2; - * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The details to set. * @return This builder for chaining. */ - public Builder setDetails(java.lang.String value) { + public Builder setDetails( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + details_ = value; onChanged(); return this; } /** - * - * *
-         * Human readable explanation about the issue. Provided to help address
-         * the configuration issues.
-         * Not guaranteed to be stable. For programmatic access use Reason enum.
+         * Output only. Human readable explanation about the issue. Provided to
+         * help address the configuration issues. Not guaranteed to be stable. For
+         * programmatic access use Reason enum.
          * 
* - * string details = 2; - * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearDetails() { - + details_ = getDefaultInstance().getDetails(); onChanged(); return this; } /** - * - * *
-         * Human readable explanation about the issue. Provided to help address
-         * the configuration issues.
-         * Not guaranteed to be stable. For programmatic access use Reason enum.
+         * Output only. Human readable explanation about the issue. Provided to
+         * help address the configuration issues. Not guaranteed to be stable. For
+         * programmatic access use Reason enum.
          * 
* - * string details = 2; - * + * string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for details to set. * @return This builder for chaining. */ - public Builder setDetailsBytes(com.google.protobuf.ByteString value) { + public Builder setDetailsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + details_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2967,36 +2270,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue) - private static final com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue(); + DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue(); } - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProvisioningIssue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProvisioningIssue(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProvisioningIssue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3008,155 +2316,117 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface AuthorizationAttemptInfoOrBuilder - extends + public interface AuthorizationAttemptInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Domain name of the authorization attempt.
        * 
* * string domain = 1; - * * @return The domain. */ java.lang.String getDomain(); /** - * - * *
        * Domain name of the authorization attempt.
        * 
* * string domain = 1; - * * @return The bytes for domain. */ - com.google.protobuf.ByteString getDomainBytes(); + com.google.protobuf.ByteString + getDomainBytes(); /** - * - * *
-       * State of the domain for managed certificate issuance.
+       * Output only. State of the domain for managed certificate issuance.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
-       * State of the domain for managed certificate issuance.
+       * Output only. State of the domain for managed certificate issuance.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo - .State - getState(); + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State getState(); /** - * - * *
-       * Output only. Reason for failure of the authorization attempt for the domain.
+       * Output only. Reason for failure of the authorization attempt for the
+       * domain.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason failure_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason failure_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for failureReason. */ int getFailureReasonValue(); /** - * - * *
-       * Output only. Reason for failure of the authorization attempt for the domain.
+       * Output only. Reason for failure of the authorization attempt for the
+       * domain.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason failure_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason failure_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The failureReason. */ - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo - .FailureReason - getFailureReason(); + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason getFailureReason(); /** - * - * *
-       * Human readable explanation for reaching the state. Provided to help
-       * address the configuration issues.
-       * Not guaranteed to be stable. For programmatic access use Reason enum.
+       * Output only. Human readable explanation for reaching the state.
+       * Provided to help address the configuration issues. Not guaranteed to be
+       * stable. For programmatic access use FailureReason enum.
        * 
* - * string details = 4; - * + * string details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The details. */ java.lang.String getDetails(); /** - * - * *
-       * Human readable explanation for reaching the state. Provided to help
-       * address the configuration issues.
-       * Not guaranteed to be stable. For programmatic access use Reason enum.
+       * Output only. Human readable explanation for reaching the state.
+       * Provided to help address the configuration issues. Not guaranteed to be
+       * stable. For programmatic access use FailureReason enum.
        * 
* - * string details = 4; - * + * string details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for details. */ - com.google.protobuf.ByteString getDetailsBytes(); + com.google.protobuf.ByteString + getDetailsBytes(); } /** - * - * *
      * State of the latest attempt to authorize a domain for certificate
      * issuance.
      * 
* - * Protobuf type {@code - * google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo} + * Protobuf type {@code google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo} */ - public static final class AuthorizationAttemptInfo - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class AuthorizationAttemptInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo) AuthorizationAttemptInfoOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AuthorizationAttemptInfo.newBuilder() to construct. private AuthorizationAttemptInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AuthorizationAttemptInfo() { domain_ = ""; state_ = 0; @@ -3166,110 +2436,39 @@ private AuthorizationAttemptInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AuthorizationAttemptInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private AuthorizationAttemptInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 24: - { - int rawValue = input.readEnum(); - - failureReason_ = rawValue; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - details_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_AuthorizationAttemptInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_AuthorizationAttemptInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_AuthorizationAttemptInfo_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_AuthorizationAttemptInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.class, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.Builder.class); + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.class, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.Builder.class); } /** - * Protobuf enum {@code - * google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State} + * Protobuf enum {@code google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** STATE_UNSPECIFIED = 0; */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + * STATE_UNSPECIFIED = 0; + */ STATE_UNSPECIFIED(0), /** - * - * *
          * Certificate provisioning for this domain is under way. GCP will
          * attempt to authorize the domain.
@@ -3279,8 +2478,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
          */
         AUTHORIZING(1),
         /**
-         *
-         *
          * 
          * A managed certificate can be provisioned, no issues for this domain.
          * 
@@ -3289,8 +2486,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ AUTHORIZED(6), /** - * - * *
          * Attempt to authorize the domain failed. This prevents the Managed
          * Certificate from being issued.
@@ -3303,11 +2498,11 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
         UNRECOGNIZED(-1),
         ;
 
-        /** STATE_UNSPECIFIED = 0; */
+        /**
+         * STATE_UNSPECIFIED = 0;
+         */
         public static final int STATE_UNSPECIFIED_VALUE = 0;
         /**
-         *
-         *
          * 
          * Certificate provisioning for this domain is under way. GCP will
          * attempt to authorize the domain.
@@ -3317,8 +2512,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
          */
         public static final int AUTHORIZING_VALUE = 1;
         /**
-         *
-         *
          * 
          * A managed certificate can be provisioned, no issues for this domain.
          * 
@@ -3327,8 +2520,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AUTHORIZED_VALUE = 6; /** - * - * *
          * Attempt to authorize the domain failed. This prevents the Managed
          * Certificate from being issued.
@@ -3339,6 +2530,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
          */
         public static final int FAILED_VALUE = 7;
 
+
         public final int getNumber() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalArgumentException(
@@ -3363,55 +2555,50 @@ public static State valueOf(int value) {
          */
         public static State forNumber(int value) {
           switch (value) {
-            case 0:
-              return STATE_UNSPECIFIED;
-            case 1:
-              return AUTHORIZING;
-            case 6:
-              return AUTHORIZED;
-            case 7:
-              return FAILED;
-            default:
-              return null;
+            case 0: return STATE_UNSPECIFIED;
+            case 1: return AUTHORIZING;
+            case 6: return AUTHORIZED;
+            case 7: return FAILED;
+            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.certificatemanager.v1.Certificate.ManagedCertificate
-              .AuthorizationAttemptInfo.getDescriptor()
-              .getEnumTypes()
-              .get(0);
+        public static final com.google.protobuf.Descriptors.EnumDescriptor
+            getDescriptor() {
+          return com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.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.");
+              "EnumValueDescriptor is not for this type.");
           }
           if (desc.getIndex() == -1) {
             return UNRECOGNIZED;
@@ -3429,15 +2616,15 @@ private State(int value) {
       }
 
       /**
-       * Protobuf enum {@code
-       * google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason}
+       * Protobuf enum {@code google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason}
        */
-      public enum FailureReason implements com.google.protobuf.ProtocolMessageEnum {
-        /** FAILURE_REASON_UNSPECIFIED = 0; */
+      public enum FailureReason
+          implements com.google.protobuf.ProtocolMessageEnum {
+        /**
+         * FAILURE_REASON_UNSPECIFIED = 0;
+         */
         FAILURE_REASON_UNSPECIFIED(0),
         /**
-         *
-         *
          * 
          * There was a problem with the user's DNS or load balancer
          * configuration for this domain.
@@ -3447,8 +2634,6 @@ public enum FailureReason implements com.google.protobuf.ProtocolMessageEnum {
          */
         CONFIG(1),
         /**
-         *
-         *
          * 
          * Certificate issuance forbidden by an explicit CAA record for the
          * domain or a failure to check CAA records for the domain.
@@ -3458,8 +2643,6 @@ public enum FailureReason implements com.google.protobuf.ProtocolMessageEnum {
          */
         CAA(2),
         /**
-         *
-         *
          * 
          * Reached a CA or internal rate-limit for the domain,
          * e.g. for certificates per top-level private domain.
@@ -3471,11 +2654,11 @@ public enum FailureReason implements com.google.protobuf.ProtocolMessageEnum {
         UNRECOGNIZED(-1),
         ;
 
-        /** FAILURE_REASON_UNSPECIFIED = 0; */
+        /**
+         * FAILURE_REASON_UNSPECIFIED = 0;
+         */
         public static final int FAILURE_REASON_UNSPECIFIED_VALUE = 0;
         /**
-         *
-         *
          * 
          * There was a problem with the user's DNS or load balancer
          * configuration for this domain.
@@ -3485,8 +2668,6 @@ public enum FailureReason implements com.google.protobuf.ProtocolMessageEnum {
          */
         public static final int CONFIG_VALUE = 1;
         /**
-         *
-         *
          * 
          * Certificate issuance forbidden by an explicit CAA record for the
          * domain or a failure to check CAA records for the domain.
@@ -3496,8 +2677,6 @@ public enum FailureReason implements com.google.protobuf.ProtocolMessageEnum {
          */
         public static final int CAA_VALUE = 2;
         /**
-         *
-         *
          * 
          * Reached a CA or internal rate-limit for the domain,
          * e.g. for certificates per top-level private domain.
@@ -3507,6 +2686,7 @@ public enum FailureReason implements com.google.protobuf.ProtocolMessageEnum {
          */
         public static final int RATE_LIMITED_VALUE = 3;
 
+
         public final int getNumber() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalArgumentException(
@@ -3531,16 +2711,11 @@ public static FailureReason valueOf(int value) {
          */
         public static FailureReason forNumber(int value) {
           switch (value) {
-            case 0:
-              return FAILURE_REASON_UNSPECIFIED;
-            case 1:
-              return CONFIG;
-            case 2:
-              return CAA;
-            case 3:
-              return RATE_LIMITED;
-            default:
-              return null;
+            case 0: return FAILURE_REASON_UNSPECIFIED;
+            case 1: return CONFIG;
+            case 2: return CAA;
+            case 3: return RATE_LIMITED;
+            default: return null;
           }
         }
 
@@ -3548,32 +2723,29 @@ public static FailureReason forNumber(int value) {
             internalGetValueMap() {
           return internalValueMap;
         }
+        private static final com.google.protobuf.Internal.EnumLiteMap<
+            FailureReason> internalValueMap =
+              new com.google.protobuf.Internal.EnumLiteMap() {
+                public FailureReason findValueByNumber(int number) {
+                  return FailureReason.forNumber(number);
+                }
+              };
 
-        private static final com.google.protobuf.Internal.EnumLiteMap
-            internalValueMap =
-                new com.google.protobuf.Internal.EnumLiteMap() {
-                  public FailureReason findValueByNumber(int number) {
-                    return FailureReason.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.certificatemanager.v1.Certificate.ManagedCertificate
-              .AuthorizationAttemptInfo.getDescriptor()
-              .getEnumTypes()
-              .get(1);
+        public static final com.google.protobuf.Descriptors.EnumDescriptor
+            getDescriptor() {
+          return com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.getDescriptor().getEnumTypes().get(1);
         }
 
         private static final FailureReason[] VALUES = values();
@@ -3582,7 +2754,7 @@ public static FailureReason 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;
@@ -3602,14 +2774,11 @@ private FailureReason(int value) {
       public static final int DOMAIN_FIELD_NUMBER = 1;
       private volatile java.lang.Object domain_;
       /**
-       *
-       *
        * 
        * Domain name of the authorization attempt.
        * 
* * string domain = 1; - * * @return The domain. */ @java.lang.Override @@ -3618,29 +2787,29 @@ public java.lang.String getDomain() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); domain_ = s; return s; } } /** - * - * *
        * Domain name of the authorization attempt.
        * 
* * string domain = 1; - * * @return The bytes for domain. */ @java.lang.Override - public com.google.protobuf.ByteString getDomainBytes() { + public com.google.protobuf.ByteString + getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); domain_ = b; return b; } else { @@ -3651,112 +2820,69 @@ public com.google.protobuf.ByteString getDomainBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** - * - * *
-       * State of the domain for managed certificate issuance.
+       * Output only. State of the domain for managed certificate issuance.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2 [(.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_; } /** - * - * *
-       * State of the domain for managed certificate issuance.
+       * Output only. State of the domain for managed certificate issuance.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.State - getState() { + @java.lang.Override public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.State - result = - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.State.valueOf(state_); - return result == null - ? com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.State.UNRECOGNIZED - : result; + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State result = com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State.valueOf(state_); + return result == null ? com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State.UNRECOGNIZED : result; } public static final int FAILURE_REASON_FIELD_NUMBER = 3; private int failureReason_; /** - * - * *
-       * Output only. Reason for failure of the authorization attempt for the domain.
+       * Output only. Reason for failure of the authorization attempt for the
+       * domain.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason failure_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason failure_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for failureReason. */ - @java.lang.Override - public int getFailureReasonValue() { + @java.lang.Override public int getFailureReasonValue() { return failureReason_; } /** - * - * *
-       * Output only. Reason for failure of the authorization attempt for the domain.
+       * Output only. Reason for failure of the authorization attempt for the
+       * domain.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason failure_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason failure_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The failureReason. */ - @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.FailureReason - getFailureReason() { + @java.lang.Override public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason getFailureReason() { @SuppressWarnings("deprecation") - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.FailureReason - result = - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.FailureReason.valueOf(failureReason_); - return result == null - ? com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.FailureReason.UNRECOGNIZED - : result; + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason result = com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason.valueOf(failureReason_); + return result == null ? com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason.UNRECOGNIZED : result; } public static final int DETAILS_FIELD_NUMBER = 4; private volatile java.lang.Object details_; /** - * - * *
-       * Human readable explanation for reaching the state. Provided to help
-       * address the configuration issues.
-       * Not guaranteed to be stable. For programmatic access use Reason enum.
+       * Output only. Human readable explanation for reaching the state.
+       * Provided to help address the configuration issues. Not guaranteed to be
+       * stable. For programmatic access use FailureReason enum.
        * 
* - * string details = 4; - * + * string details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The details. */ @java.lang.Override @@ -3765,31 +2891,31 @@ public java.lang.String getDetails() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; } } /** - * - * *
-       * Human readable explanation for reaching the state. Provided to help
-       * address the configuration issues.
-       * Not guaranteed to be stable. For programmatic access use Reason enum.
+       * Output only. Human readable explanation for reaching the state.
+       * Provided to help address the configuration issues. Not guaranteed to be
+       * stable. For programmatic access use FailureReason enum.
        * 
* - * string details = 4; - * + * string details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for details. */ @java.lang.Override - public com.google.protobuf.ByteString getDetailsBytes() { + public com.google.protobuf.ByteString + getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); details_ = b; return b; } else { @@ -3798,7 +2924,6 @@ public com.google.protobuf.ByteString getDetailsBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3810,26 +2935,21 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, domain_); } - if (state_ - != com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, state_); } - if (failureReason_ - != com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.FailureReason.FAILURE_REASON_UNSPECIFIED - .getNumber()) { + if (failureReason_ != com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason.FAILURE_REASON_UNSPECIFIED.getNumber()) { output.writeEnum(3, failureReason_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, details_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -3841,22 +2961,18 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, domain_); } - if (state_ - != com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + if (state_ != com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } - if (failureReason_ - != com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.FailureReason.FAILURE_REASON_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, failureReason_); + if (failureReason_ != com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason.FAILURE_REASON_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, failureReason_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, details_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -3864,26 +2980,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.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo)) { + if (!(obj instanceof com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - other = - (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo) - obj; + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo other = (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo) obj; - if (!getDomain().equals(other.getDomain())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; if (state_ != other.state_) return false; if (failureReason_ != other.failureReason_) return false; - if (!getDetails().equals(other.getDetails())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getDetails() + .equals(other.getDetails())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3902,122 +3012,93 @@ public int hashCode() { hash = (53 * hash) + failureReason_; hash = (37 * hash) + DETAILS_FIELD_NUMBER; hash = (53 * hash) + getDetails().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo 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.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - 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.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo 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.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - 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.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo 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.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4027,54 +3108,40 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * State of the latest attempt to authorize a domain for certificate
        * issuance.
        * 
* - * Protobuf type {@code - * google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo} + * Protobuf type {@code google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo) - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_AuthorizationAttemptInfo_descriptor; + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_AuthorizationAttemptInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_AuthorizationAttemptInfo_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_AuthorizationAttemptInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.class, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.Builder.class); + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.class, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.Builder.class); } - // Construct using - // com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.newBuilder() + // Construct using com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -4090,26 +3157,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_AuthorizationAttemptInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_AuthorizationAttemptInfo_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - getDefaultInstanceForType() { - return com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.getDefaultInstance(); + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - build() { - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - result = buildPartial(); + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo build() { + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4117,14 +3177,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - buildPartial() { - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - result = - new com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo(this); + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo buildPartial() { + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo result = new com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo(this); result.domain_ = domain_; result.state_ = state_; result.failureReason_ = failureReason_; @@ -4137,60 +3191,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.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo) { - return mergeFrom( - (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo) - other); + if (other instanceof com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo) { + return mergeFrom((com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - other) { - if (other - == com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo other) { + if (other == com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.getDefaultInstance()) return this; if (!other.getDomain().isEmpty()) { domain_ = other.domain_; onChanged(); @@ -4205,7 +3245,7 @@ public Builder mergeFrom( details_ = other.details_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -4220,41 +3260,67 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + domain_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + state_ = input.readEnum(); + + break; + } // case 16 + case 24: { + failureReason_ = input.readEnum(); + + break; + } // case 24 + case 34: { + details_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object domain_ = ""; /** - * - * *
          * Domain name of the authorization attempt.
          * 
* * string domain = 1; - * * @return The domain. */ public java.lang.String getDomain() { java.lang.Object ref = domain_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); domain_ = s; return s; @@ -4263,21 +3329,20 @@ public java.lang.String getDomain() { } } /** - * - * *
          * Domain name of the authorization attempt.
          * 
* * string domain = 1; - * * @return The bytes for domain. */ - public com.google.protobuf.ByteString getDomainBytes() { + public com.google.protobuf.ByteString + getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); domain_ = b; return b; } else { @@ -4285,61 +3350,54 @@ public com.google.protobuf.ByteString getDomainBytes() { } } /** - * - * *
          * Domain name of the authorization attempt.
          * 
* * string domain = 1; - * * @param value The domain to set. * @return This builder for chaining. */ - public Builder setDomain(java.lang.String value) { + public Builder setDomain( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + domain_ = value; onChanged(); return this; } /** - * - * *
          * Domain name of the authorization attempt.
          * 
* * string domain = 1; - * * @return This builder for chaining. */ public Builder clearDomain() { - + domain_ = getDefaultInstance().getDomain(); onChanged(); return this; } /** - * - * *
          * Domain name of the authorization attempt.
          * 
* * string domain = 1; - * * @param value The bytes for domain to set. * @return This builder for chaining. */ - public Builder setDomainBytes(com.google.protobuf.ByteString value) { + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + domain_ = value; onChanged(); return this; @@ -4347,111 +3405,73 @@ public Builder setDomainBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
-         * State of the domain for managed certificate issuance.
+         * Output only. State of the domain for managed certificate issuance.
          * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2 [(.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_; } /** - * - * *
-         * State of the domain for managed certificate issuance.
+         * Output only. State of the domain for managed certificate issuance.
          * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2 [(.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; } /** - * - * *
-         * State of the domain for managed certificate issuance.
+         * Output only. State of the domain for managed certificate issuance.
          * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.State - getState() { + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.State - result = - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.State.valueOf(state_); - return result == null - ? com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.State.UNRECOGNIZED - : result; + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State result = com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State.valueOf(state_); + return result == null ? com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State.UNRECOGNIZED : result; } /** - * - * *
-         * State of the domain for managed certificate issuance.
+         * Output only. State of the domain for managed certificate issuance.
          * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ - public Builder setState( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.State - value) { + public Builder setState(com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
-         * State of the domain for managed certificate issuance.
+         * Output only. State of the domain for managed certificate issuance.
          * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -4459,111 +3479,78 @@ public Builder clearState() { private int failureReason_ = 0; /** - * - * *
-         * Output only. Reason for failure of the authorization attempt for the domain.
+         * Output only. Reason for failure of the authorization attempt for the
+         * domain.
          * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason failure_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason failure_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for failureReason. */ - @java.lang.Override - public int getFailureReasonValue() { + @java.lang.Override public int getFailureReasonValue() { return failureReason_; } /** - * - * *
-         * Output only. Reason for failure of the authorization attempt for the domain.
+         * Output only. Reason for failure of the authorization attempt for the
+         * domain.
          * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason failure_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason failure_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for failureReason to set. * @return This builder for chaining. */ public Builder setFailureReasonValue(int value) { - + failureReason_ = value; onChanged(); return this; } /** - * - * *
-         * Output only. Reason for failure of the authorization attempt for the domain.
+         * Output only. Reason for failure of the authorization attempt for the
+         * domain.
          * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason failure_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason failure_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The failureReason. */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.FailureReason - getFailureReason() { + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason getFailureReason() { @SuppressWarnings("deprecation") - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.FailureReason - result = - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.FailureReason.valueOf(failureReason_); - return result == null - ? com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.FailureReason.UNRECOGNIZED - : result; + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason result = com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason.valueOf(failureReason_); + return result == null ? com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason.UNRECOGNIZED : result; } /** - * - * *
-         * Output only. Reason for failure of the authorization attempt for the domain.
+         * Output only. Reason for failure of the authorization attempt for the
+         * domain.
          * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason failure_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason failure_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The failureReason to set. * @return This builder for chaining. */ - public Builder setFailureReason( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.FailureReason - value) { + public Builder setFailureReason(com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason value) { if (value == null) { throw new NullPointerException(); } - + failureReason_ = value.getNumber(); onChanged(); return this; } /** - * - * *
-         * Output only. Reason for failure of the authorization attempt for the domain.
+         * Output only. Reason for failure of the authorization attempt for the
+         * domain.
          * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason failure_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason failure_reason = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearFailureReason() { - + failureReason_ = 0; onChanged(); return this; @@ -4571,22 +3558,20 @@ public Builder clearFailureReason() { private java.lang.Object details_ = ""; /** - * - * *
-         * Human readable explanation for reaching the state. Provided to help
-         * address the configuration issues.
-         * Not guaranteed to be stable. For programmatic access use Reason enum.
+         * Output only. Human readable explanation for reaching the state.
+         * Provided to help address the configuration issues. Not guaranteed to be
+         * stable. For programmatic access use FailureReason enum.
          * 
* - * string details = 4; - * + * string details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The details. */ public java.lang.String getDetails() { java.lang.Object ref = details_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; @@ -4595,23 +3580,22 @@ public java.lang.String getDetails() { } } /** - * - * *
-         * Human readable explanation for reaching the state. Provided to help
-         * address the configuration issues.
-         * Not guaranteed to be stable. For programmatic access use Reason enum.
+         * Output only. Human readable explanation for reaching the state.
+         * Provided to help address the configuration issues. Not guaranteed to be
+         * stable. For programmatic access use FailureReason enum.
          * 
* - * string details = 4; - * + * string details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for details. */ - public com.google.protobuf.ByteString getDetailsBytes() { + public com.google.protobuf.ByteString + getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); details_ = b; return b; } else { @@ -4619,72 +3603,64 @@ public com.google.protobuf.ByteString getDetailsBytes() { } } /** - * - * *
-         * Human readable explanation for reaching the state. Provided to help
-         * address the configuration issues.
-         * Not guaranteed to be stable. For programmatic access use Reason enum.
+         * Output only. Human readable explanation for reaching the state.
+         * Provided to help address the configuration issues. Not guaranteed to be
+         * stable. For programmatic access use FailureReason enum.
          * 
* - * string details = 4; - * + * string details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The details to set. * @return This builder for chaining. */ - public Builder setDetails(java.lang.String value) { + public Builder setDetails( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + details_ = value; onChanged(); return this; } /** - * - * *
-         * Human readable explanation for reaching the state. Provided to help
-         * address the configuration issues.
-         * Not guaranteed to be stable. For programmatic access use Reason enum.
+         * Output only. Human readable explanation for reaching the state.
+         * Provided to help address the configuration issues. Not guaranteed to be
+         * stable. For programmatic access use FailureReason enum.
          * 
* - * string details = 4; - * + * string details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearDetails() { - + details_ = getDefaultInstance().getDetails(); onChanged(); return this; } /** - * - * *
-         * Human readable explanation for reaching the state. Provided to help
-         * address the configuration issues.
-         * Not guaranteed to be stable. For programmatic access use Reason enum.
+         * Output only. Human readable explanation for reaching the state.
+         * Provided to help address the configuration issues. Not guaranteed to be
+         * stable. For programmatic access use FailureReason enum.
          * 
* - * string details = 4; - * + * string details = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for details to set. * @return This builder for chaining. */ - public Builder setDetailsBytes(com.google.protobuf.ByteString value) { + public Builder setDetailsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + details_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4697,36 +3673,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo) - private static final com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo(); + DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo(); } - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuthorizationAttemptInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuthorizationAttemptInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthorizationAttemptInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4738,55 +3719,49 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int DOMAINS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList domains_; /** - * - * *
-     * Immutable. The domains for which a managed SSL certificate will be generated.
-     * Wildcard domains are only supported with DNS challenge resolution.
+     * Immutable. The domains for which a managed SSL certificate will be
+     * generated. Wildcard domains are only supported with DNS challenge
+     * resolution.
      * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return A list containing the domains. */ - public com.google.protobuf.ProtocolStringList getDomainsList() { + public com.google.protobuf.ProtocolStringList + getDomainsList() { return domains_; } /** - * - * *
-     * Immutable. The domains for which a managed SSL certificate will be generated.
-     * Wildcard domains are only supported with DNS challenge resolution.
+     * Immutable. The domains for which a managed SSL certificate will be
+     * generated. Wildcard domains are only supported with DNS challenge
+     * resolution.
      * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The count of domains. */ public int getDomainsCount() { return domains_.size(); } /** - * - * *
-     * Immutable. The domains for which a managed SSL certificate will be generated.
-     * Wildcard domains are only supported with DNS challenge resolution.
+     * Immutable. The domains for which a managed SSL certificate will be
+     * generated. Wildcard domains are only supported with DNS challenge
+     * resolution.
      * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param index The index of the element to return. * @return The domains at the given index. */ @@ -4794,67 +3769,55 @@ public java.lang.String getDomains(int index) { return domains_.get(index); } /** - * - * *
-     * Immutable. The domains for which a managed SSL certificate will be generated.
-     * Wildcard domains are only supported with DNS challenge resolution.
+     * Immutable. The domains for which a managed SSL certificate will be
+     * generated. Wildcard domains are only supported with DNS challenge
+     * resolution.
      * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param index The index of the value to return. * @return The bytes of the domains at the given index. */ - public com.google.protobuf.ByteString getDomainsBytes(int index) { + public com.google.protobuf.ByteString + getDomainsBytes(int index) { return domains_.getByteString(index); } public static final int DNS_AUTHORIZATIONS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList dnsAuthorizations_; /** - * - * *
-     * Immutable. Authorizations that will be used for performing domain authorization.
+     * Immutable. Authorizations that will be used for performing domain
+     * authorization.
      * 
* - * - * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return A list containing the dnsAuthorizations. */ - public com.google.protobuf.ProtocolStringList getDnsAuthorizationsList() { + public com.google.protobuf.ProtocolStringList + getDnsAuthorizationsList() { return dnsAuthorizations_; } /** - * - * *
-     * Immutable. Authorizations that will be used for performing domain authorization.
+     * Immutable. Authorizations that will be used for performing domain
+     * authorization.
      * 
* - * - * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The count of dnsAuthorizations. */ public int getDnsAuthorizationsCount() { return dnsAuthorizations_.size(); } /** - * - * *
-     * Immutable. Authorizations that will be used for performing domain authorization.
+     * Immutable. Authorizations that will be used for performing domain
+     * authorization.
      * 
* - * - * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The dnsAuthorizations at the given index. */ @@ -4862,80 +3825,114 @@ public java.lang.String getDnsAuthorizations(int index) { return dnsAuthorizations_.get(index); } /** - * - * *
-     * Immutable. Authorizations that will be used for performing domain authorization.
+     * Immutable. Authorizations that will be used for performing domain
+     * authorization.
      * 
* - * - * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the dnsAuthorizations at the given index. */ - public com.google.protobuf.ByteString getDnsAuthorizationsBytes(int index) { + public com.google.protobuf.ByteString + getDnsAuthorizationsBytes(int index) { return dnsAuthorizations_.getByteString(index); } - public static final int STATE_FIELD_NUMBER = 4; - private int state_; + public static final int ISSUANCE_CONFIG_FIELD_NUMBER = 6; + private volatile java.lang.Object issuanceConfig_; /** + *
+     * The resource name for a
+     * [CertificateIssuanceConfig][google.cloud.certificatemanager.v1.CertificateIssuanceConfig]
+     * used to configure private PKI certificates in the format
+     * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * If this field is not set, the certificates will instead be publicly
+     * signed as documented at
+     * https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
+     * 
* + * string issuance_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * @return The issuanceConfig. + */ + @java.lang.Override + public java.lang.String getIssuanceConfig() { + java.lang.Object ref = issuanceConfig_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + issuanceConfig_ = s; + return s; + } + } + /** + *
+     * The resource name for a
+     * [CertificateIssuanceConfig][google.cloud.certificatemanager.v1.CertificateIssuanceConfig]
+     * used to configure private PKI certificates in the format
+     * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * If this field is not set, the certificates will instead be publicly
+     * signed as documented at
+     * https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
+     * 
* + * string issuance_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * @return The bytes for issuanceConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIssuanceConfigBytes() { + java.lang.Object ref = issuanceConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + issuanceConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_; + /** *
      * Output only. State of the managed certificate resource.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State state = 4 [(.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. State of the managed certificate resource.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State getState() { + @java.lang.Override public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State result = - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State.valueOf( - state_); - return result == null - ? com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State.UNRECOGNIZED - : result; + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State result = com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State.valueOf(state_); + return result == null ? com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State.UNRECOGNIZED : result; } public static final int PROVISIONING_ISSUE_FIELD_NUMBER = 3; - private com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue - provisioningIssue_; + private com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioningIssue_; /** - * - * *
-     * Information about issues with provisioning a Managed Certificate.
+     * Output only. Information about issues with provisioning a Managed
+     * Certificate.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the provisioningIssue field is set. */ @java.lang.Override @@ -4943,143 +3940,97 @@ public boolean hasProvisioningIssue() { return provisioningIssue_ != null; } /** - * - * *
-     * Information about issues with provisioning a Managed Certificate.
+     * Output only. Information about issues with provisioning a Managed
+     * Certificate.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The provisioningIssue. */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue - getProvisioningIssue() { - return provisioningIssue_ == null - ? com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue - .getDefaultInstance() - : provisioningIssue_; + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue getProvisioningIssue() { + return provisioningIssue_ == null ? com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.getDefaultInstance() : provisioningIssue_; } /** - * - * *
-     * Information about issues with provisioning a Managed Certificate.
+     * Output only. Information about issues with provisioning a Managed
+     * Certificate.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssueOrBuilder - getProvisioningIssueOrBuilder() { + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssueOrBuilder getProvisioningIssueOrBuilder() { return getProvisioningIssue(); } public static final int AUTHORIZATION_ATTEMPT_INFO_FIELD_NUMBER = 5; - private java.util.List< - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo> - authorizationAttemptInfo_; + private java.util.List authorizationAttemptInfo_; /** - * - * *
-     * Output only. Detailed state of the latest authorization attempt for each domain
-     * specified for managed certificate resource.
+     * Output only. Detailed state of the latest authorization attempt for each
+     * domain specified for managed certificate resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List< - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo> - getAuthorizationAttemptInfoList() { + public java.util.List getAuthorizationAttemptInfoList() { return authorizationAttemptInfo_; } /** - * - * *
-     * Output only. Detailed state of the latest authorization attempt for each domain
-     * specified for managed certificate resource.
+     * Output only. Detailed state of the latest authorization attempt for each
+     * domain specified for managed certificate resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfoOrBuilder> + public java.util.List getAuthorizationAttemptInfoOrBuilderList() { return authorizationAttemptInfo_; } /** - * - * *
-     * Output only. Detailed state of the latest authorization attempt for each domain
-     * specified for managed certificate resource.
+     * Output only. Detailed state of the latest authorization attempt for each
+     * domain specified for managed certificate resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getAuthorizationAttemptInfoCount() { return authorizationAttemptInfo_.size(); } /** - * - * *
-     * Output only. Detailed state of the latest authorization attempt for each domain
-     * specified for managed certificate resource.
+     * Output only. Detailed state of the latest authorization attempt for each
+     * domain specified for managed certificate resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - getAuthorizationAttemptInfo(int index) { + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo getAuthorizationAttemptInfo(int index) { return authorizationAttemptInfo_.get(index); } /** - * - * *
-     * Output only. Detailed state of the latest authorization attempt for each domain
-     * specified for managed certificate resource.
+     * Output only. Detailed state of the latest authorization attempt for each
+     * domain specified for managed certificate resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfoOrBuilder - getAuthorizationAttemptInfoOrBuilder(int index) { + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfoOrBuilder getAuthorizationAttemptInfoOrBuilder( + int index) { return authorizationAttemptInfo_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5091,7 +4042,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < domains_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, domains_.getRaw(i)); } @@ -5101,16 +4053,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (provisioningIssue_ != null) { output.writeMessage(3, getProvisioningIssue()); } - if (state_ - != com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State - .STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(4, state_); } for (int i = 0; i < authorizationAttemptInfo_.size(); i++) { output.writeMessage(5, authorizationAttemptInfo_.get(i)); } - unknownFields.writeTo(output); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuanceConfig_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, issuanceConfig_); + } + getUnknownFields().writeTo(output); } @java.lang.Override @@ -5136,20 +4088,21 @@ public int getSerializedSize() { size += 1 * getDnsAuthorizationsList().size(); } if (provisioningIssue_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProvisioningIssue()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getProvisioningIssue()); } - if (state_ - != com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State - .STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + if (state_ != com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, state_); } for (int i = 0; i < authorizationAttemptInfo_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, authorizationAttemptInfo_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, authorizationAttemptInfo_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuanceConfig_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, issuanceConfig_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -5157,24 +4110,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.certificatemanager.v1.Certificate.ManagedCertificate)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate other = - (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) obj; + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate other = (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) obj; - if (!getDomainsList().equals(other.getDomainsList())) return false; - if (!getDnsAuthorizationsList().equals(other.getDnsAuthorizationsList())) return false; + if (!getDomainsList() + .equals(other.getDomainsList())) return false; + if (!getDnsAuthorizationsList() + .equals(other.getDnsAuthorizationsList())) return false; + if (!getIssuanceConfig() + .equals(other.getIssuanceConfig())) return false; if (state_ != other.state_) return false; if (hasProvisioningIssue() != other.hasProvisioningIssue()) return false; if (hasProvisioningIssue()) { - if (!getProvisioningIssue().equals(other.getProvisioningIssue())) return false; + if (!getProvisioningIssue() + .equals(other.getProvisioningIssue())) return false; } - if (!getAuthorizationAttemptInfoList().equals(other.getAuthorizationAttemptInfoList())) - return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getAuthorizationAttemptInfoList() + .equals(other.getAuthorizationAttemptInfoList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5193,6 +4150,8 @@ public int hashCode() { hash = (37 * hash) + DNS_AUTHORIZATIONS_FIELD_NUMBER; hash = (53 * hash) + getDnsAuthorizationsList().hashCode(); } + hash = (37 * hash) + ISSUANCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getIssuanceConfig().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; if (hasProvisioningIssue()) { @@ -5203,101 +4162,93 @@ public int hashCode() { hash = (37 * hash) + AUTHORIZATION_ATTEMPT_INFO_FIELD_NUMBER; hash = (53 * hash) + getAuthorizationAttemptInfoList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5307,8 +4258,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Configuration and state of a Managed Certificate.
      * Certificate Manager provisions and renews Managed Certificates
@@ -5317,44 +4266,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.certificatemanager.v1.Certificate.ManagedCertificate}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.Certificate.ManagedCertificate)
         com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificateOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.certificatemanager.v1.CertificateManagerProto
-            .internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.certificatemanager.v1.CertificateManagerProto
-            .internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_fieldAccessorTable
+        return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.class,
-                com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.Builder
-                    .class);
+                com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.class, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.newBuilder()
+      // Construct using com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.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) {
-          getAuthorizationAttemptInfoFieldBuilder();
-        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -5362,6 +4300,8 @@ public Builder clear() {
         bitField0_ = (bitField0_ & ~0x00000001);
         dnsAuthorizations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
         bitField0_ = (bitField0_ & ~0x00000002);
+        issuanceConfig_ = "";
+
         state_ = 0;
 
         if (provisioningIssueBuilder_ == null) {
@@ -5372,30 +4312,28 @@ public Builder clear() {
         }
         if (authorizationAttemptInfoBuilder_ == null) {
           authorizationAttemptInfo_ = java.util.Collections.emptyList();
-          bitField0_ = (bitField0_ & ~0x00000004);
         } else {
+          authorizationAttemptInfo_ = null;
           authorizationAttemptInfoBuilder_.clear();
         }
+        bitField0_ = (bitField0_ & ~0x00000004);
         return this;
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.certificatemanager.v1.CertificateManagerProto
-            .internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate
-          getDefaultInstanceForType() {
-        return com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate
-            .getDefaultInstance();
+      public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate getDefaultInstanceForType() {
+        return com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate build() {
-        com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate result =
-            buildPartial();
+        com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -5404,8 +4342,7 @@ public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate bui
 
       @java.lang.Override
       public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate buildPartial() {
-        com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate result =
-            new com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate(this);
+        com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate result = new com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate(this);
         int from_bitField0_ = bitField0_;
         if (((bitField0_ & 0x00000001) != 0)) {
           domains_ = domains_.getUnmodifiableView();
@@ -5417,6 +4354,7 @@ public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate bui
           bitField0_ = (bitField0_ & ~0x00000002);
         }
         result.dnsAuthorizations_ = dnsAuthorizations_;
+        result.issuanceConfig_ = issuanceConfig_;
         result.state_ = state_;
         if (provisioningIssueBuilder_ == null) {
           result.provisioningIssue_ = provisioningIssue_;
@@ -5425,8 +4363,7 @@ public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate bui
         }
         if (authorizationAttemptInfoBuilder_ == null) {
           if (((bitField0_ & 0x00000004) != 0)) {
-            authorizationAttemptInfo_ =
-                java.util.Collections.unmodifiableList(authorizationAttemptInfo_);
+            authorizationAttemptInfo_ = java.util.Collections.unmodifiableList(authorizationAttemptInfo_);
             bitField0_ = (bitField0_ & ~0x00000004);
           }
           result.authorizationAttemptInfo_ = authorizationAttemptInfo_;
@@ -5441,54 +4378,46 @@ public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate 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.certificatemanager.v1.Certificate.ManagedCertificate) {
-          return mergeFrom(
-              (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) other);
+        if (other instanceof com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) {
+          return mergeFrom((com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate other) {
-        if (other
-            == com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate other) {
+        if (other == com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.getDefaultInstance()) return this;
         if (!other.domains_.isEmpty()) {
           if (domains_.isEmpty()) {
             domains_ = other.domains_;
@@ -5509,6 +4438,10 @@ public Builder mergeFrom(
           }
           onChanged();
         }
+        if (!other.getIssuanceConfig().isEmpty()) {
+          issuanceConfig_ = other.issuanceConfig_;
+          onChanged();
+        }
         if (other.state_ != 0) {
           setStateValue(other.getStateValue());
         }
@@ -5533,97 +4466,141 @@ public Builder mergeFrom(
               authorizationAttemptInfoBuilder_ = null;
               authorizationAttemptInfo_ = other.authorizationAttemptInfo_;
               bitField0_ = (bitField0_ & ~0x00000004);
-              authorizationAttemptInfoBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getAuthorizationAttemptInfoFieldBuilder()
-                      : null;
+              authorizationAttemptInfoBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getAuthorizationAttemptInfoFieldBuilder() : null;
             } else {
               authorizationAttemptInfoBuilder_.addAllMessages(other.authorizationAttemptInfo_);
             }
           }
         }
-        this.mergeUnknownFields(other.unknownFields);
+        this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
         return this;
       }
 
-      @java.lang.Override
-      public final boolean isInitialized() {
-        return true;
-      }
+      @java.lang.Override
+      public final boolean isInitialized() {
+        return true;
+      }
+
+      @java.lang.Override
+      public Builder mergeFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+        if (extensionRegistry == null) {
+          throw new java.lang.NullPointerException();
+        }
+        try {
+          boolean done = false;
+          while (!done) {
+            int tag = input.readTag();
+            switch (tag) {
+              case 0:
+                done = true;
+                break;
+              case 10: {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureDomainsIsMutable();
+                domains_.add(s);
+                break;
+              } // case 10
+              case 18: {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureDnsAuthorizationsIsMutable();
+                dnsAuthorizations_.add(s);
+                break;
+              } // case 18
+              case 26: {
+                input.readMessage(
+                    getProvisioningIssueFieldBuilder().getBuilder(),
+                    extensionRegistry);
+
+                break;
+              } // case 26
+              case 32: {
+                state_ = input.readEnum();
+
+                break;
+              } // case 32
+              case 42: {
+                com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo m =
+                    input.readMessage(
+                        com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.parser(),
+                        extensionRegistry);
+                if (authorizationAttemptInfoBuilder_ == null) {
+                  ensureAuthorizationAttemptInfoIsMutable();
+                  authorizationAttemptInfo_.add(m);
+                } else {
+                  authorizationAttemptInfoBuilder_.addMessage(m);
+                }
+                break;
+              } // case 42
+              case 50: {
+                issuanceConfig_ = input.readStringRequireUtf8();
 
-      @java.lang.Override
-      public Builder mergeFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-        com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate parsedMessage = null;
-        try {
-          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+                break;
+              } // case 50
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
+            } // switch (tag)
+          } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate)
-                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
-          if (parsedMessage != null) {
-            mergeFrom(parsedMessage);
-          }
-        }
+          onChanged();
+        } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private com.google.protobuf.LazyStringList domains_ =
-          com.google.protobuf.LazyStringArrayList.EMPTY;
-
+      private com.google.protobuf.LazyStringList domains_ = com.google.protobuf.LazyStringArrayList.EMPTY;
       private void ensureDomainsIsMutable() {
         if (!((bitField0_ & 0x00000001) != 0)) {
           domains_ = new com.google.protobuf.LazyStringArrayList(domains_);
           bitField0_ |= 0x00000001;
-        }
+         }
       }
       /**
-       *
-       *
        * 
-       * Immutable. The domains for which a managed SSL certificate will be generated.
-       * Wildcard domains are only supported with DNS challenge resolution.
+       * Immutable. The domains for which a managed SSL certificate will be
+       * generated. Wildcard domains are only supported with DNS challenge
+       * resolution.
        * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return A list containing the domains. */ - public com.google.protobuf.ProtocolStringList getDomainsList() { + public com.google.protobuf.ProtocolStringList + getDomainsList() { return domains_.getUnmodifiableView(); } /** - * - * *
-       * Immutable. The domains for which a managed SSL certificate will be generated.
-       * Wildcard domains are only supported with DNS challenge resolution.
+       * Immutable. The domains for which a managed SSL certificate will be
+       * generated. Wildcard domains are only supported with DNS challenge
+       * resolution.
        * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The count of domains. */ public int getDomainsCount() { return domains_.size(); } /** - * - * *
-       * Immutable. The domains for which a managed SSL certificate will be generated.
-       * Wildcard domains are only supported with DNS challenge resolution.
+       * Immutable. The domains for which a managed SSL certificate will be
+       * generated. Wildcard domains are only supported with DNS challenge
+       * resolution.
        * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param index The index of the element to return. * @return The domains at the given index. */ @@ -5631,95 +4608,90 @@ public java.lang.String getDomains(int index) { return domains_.get(index); } /** - * - * *
-       * Immutable. The domains for which a managed SSL certificate will be generated.
-       * Wildcard domains are only supported with DNS challenge resolution.
+       * Immutable. The domains for which a managed SSL certificate will be
+       * generated. Wildcard domains are only supported with DNS challenge
+       * resolution.
        * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param index The index of the value to return. * @return The bytes of the domains at the given index. */ - public com.google.protobuf.ByteString getDomainsBytes(int index) { + public com.google.protobuf.ByteString + getDomainsBytes(int index) { return domains_.getByteString(index); } /** - * - * *
-       * Immutable. The domains for which a managed SSL certificate will be generated.
-       * Wildcard domains are only supported with DNS challenge resolution.
+       * Immutable. The domains for which a managed SSL certificate will be
+       * generated. Wildcard domains are only supported with DNS challenge
+       * resolution.
        * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param index The index to set the value at. * @param value The domains to set. * @return This builder for chaining. */ - public Builder setDomains(int index, java.lang.String value) { + public Builder setDomains( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDomainsIsMutable(); + throw new NullPointerException(); + } + ensureDomainsIsMutable(); domains_.set(index, value); onChanged(); return this; } /** - * - * *
-       * Immutable. The domains for which a managed SSL certificate will be generated.
-       * Wildcard domains are only supported with DNS challenge resolution.
+       * Immutable. The domains for which a managed SSL certificate will be
+       * generated. Wildcard domains are only supported with DNS challenge
+       * resolution.
        * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The domains to add. * @return This builder for chaining. */ - public Builder addDomains(java.lang.String value) { + public Builder addDomains( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDomainsIsMutable(); + throw new NullPointerException(); + } + ensureDomainsIsMutable(); domains_.add(value); onChanged(); return this; } /** - * - * *
-       * Immutable. The domains for which a managed SSL certificate will be generated.
-       * Wildcard domains are only supported with DNS challenge resolution.
+       * Immutable. The domains for which a managed SSL certificate will be
+       * generated. Wildcard domains are only supported with DNS challenge
+       * resolution.
        * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param values The domains to add. * @return This builder for chaining. */ - public Builder addAllDomains(java.lang.Iterable values) { + public Builder addAllDomains( + java.lang.Iterable values) { ensureDomainsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, domains_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, domains_); onChanged(); return this; } /** - * - * *
-       * Immutable. The domains for which a managed SSL certificate will be generated.
-       * Wildcard domains are only supported with DNS challenge resolution.
+       * Immutable. The domains for which a managed SSL certificate will be
+       * generated. Wildcard domains are only supported with DNS challenge
+       * resolution.
        * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearDomains() { @@ -5729,81 +4701,67 @@ public Builder clearDomains() { return this; } /** - * - * *
-       * Immutable. The domains for which a managed SSL certificate will be generated.
-       * Wildcard domains are only supported with DNS challenge resolution.
+       * Immutable. The domains for which a managed SSL certificate will be
+       * generated. Wildcard domains are only supported with DNS challenge
+       * resolution.
        * 
* * repeated string domains = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes of the domains to add. * @return This builder for chaining. */ - public Builder addDomainsBytes(com.google.protobuf.ByteString value) { + public Builder addDomainsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDomainsIsMutable(); domains_.add(value); onChanged(); return this; } - private com.google.protobuf.LazyStringList dnsAuthorizations_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList dnsAuthorizations_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDnsAuthorizationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { dnsAuthorizations_ = new com.google.protobuf.LazyStringArrayList(dnsAuthorizations_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
-       * Immutable. Authorizations that will be used for performing domain authorization.
+       * Immutable. Authorizations that will be used for performing domain
+       * authorization.
        * 
* - * - * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return A list containing the dnsAuthorizations. */ - public com.google.protobuf.ProtocolStringList getDnsAuthorizationsList() { + public com.google.protobuf.ProtocolStringList + getDnsAuthorizationsList() { return dnsAuthorizations_.getUnmodifiableView(); } /** - * - * *
-       * Immutable. Authorizations that will be used for performing domain authorization.
+       * Immutable. Authorizations that will be used for performing domain
+       * authorization.
        * 
* - * - * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The count of dnsAuthorizations. */ public int getDnsAuthorizationsCount() { return dnsAuthorizations_.size(); } /** - * - * *
-       * Immutable. Authorizations that will be used for performing domain authorization.
+       * Immutable. Authorizations that will be used for performing domain
+       * authorization.
        * 
* - * - * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The dnsAuthorizations at the given index. */ @@ -5811,100 +4769,85 @@ public java.lang.String getDnsAuthorizations(int index) { return dnsAuthorizations_.get(index); } /** - * - * *
-       * Immutable. Authorizations that will be used for performing domain authorization.
+       * Immutable. Authorizations that will be used for performing domain
+       * authorization.
        * 
* - * - * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the dnsAuthorizations at the given index. */ - public com.google.protobuf.ByteString getDnsAuthorizationsBytes(int index) { + public com.google.protobuf.ByteString + getDnsAuthorizationsBytes(int index) { return dnsAuthorizations_.getByteString(index); } /** - * - * *
-       * Immutable. Authorizations that will be used for performing domain authorization.
+       * Immutable. Authorizations that will be used for performing domain
+       * authorization.
        * 
* - * - * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The dnsAuthorizations to set. * @return This builder for chaining. */ - public Builder setDnsAuthorizations(int index, java.lang.String value) { + public Builder setDnsAuthorizations( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDnsAuthorizationsIsMutable(); + throw new NullPointerException(); + } + ensureDnsAuthorizationsIsMutable(); dnsAuthorizations_.set(index, value); onChanged(); return this; } /** - * - * *
-       * Immutable. Authorizations that will be used for performing domain authorization.
+       * Immutable. Authorizations that will be used for performing domain
+       * authorization.
        * 
* - * - * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The dnsAuthorizations to add. * @return This builder for chaining. */ - public Builder addDnsAuthorizations(java.lang.String value) { + public Builder addDnsAuthorizations( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureDnsAuthorizationsIsMutable(); + throw new NullPointerException(); + } + ensureDnsAuthorizationsIsMutable(); dnsAuthorizations_.add(value); onChanged(); return this; } /** - * - * *
-       * Immutable. Authorizations that will be used for performing domain authorization.
+       * Immutable. Authorizations that will be used for performing domain
+       * authorization.
        * 
* - * - * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param values The dnsAuthorizations to add. * @return This builder for chaining. */ - public Builder addAllDnsAuthorizations(java.lang.Iterable values) { + public Builder addAllDnsAuthorizations( + java.lang.Iterable values) { ensureDnsAuthorizationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dnsAuthorizations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dnsAuthorizations_); onChanged(); return this; } /** - * - * *
-       * Immutable. Authorizations that will be used for performing domain authorization.
+       * Immutable. Authorizations that will be used for performing domain
+       * authorization.
        * 
* - * - * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearDnsAuthorizations() { @@ -5914,202 +4857,267 @@ public Builder clearDnsAuthorizations() { return this; } /** - * - * *
-       * Immutable. Authorizations that will be used for performing domain authorization.
+       * Immutable. Authorizations that will be used for performing domain
+       * authorization.
        * 
* - * - * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * repeated string dns_authorizations = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bytes of the dnsAuthorizations to add. * @return This builder for chaining. */ - public Builder addDnsAuthorizationsBytes(com.google.protobuf.ByteString value) { + public Builder addDnsAuthorizationsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureDnsAuthorizationsIsMutable(); dnsAuthorizations_.add(value); onChanged(); return this; } - private int state_ = 0; + private java.lang.Object issuanceConfig_ = ""; /** + *
+       * The resource name for a
+       * [CertificateIssuanceConfig][google.cloud.certificatemanager.v1.CertificateIssuanceConfig]
+       * used to configure private PKI certificates in the format
+       * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+       * If this field is not set, the certificates will instead be publicly
+       * signed as documented at
+       * https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
+       * 
* - * + * string issuance_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * @return The issuanceConfig. + */ + public java.lang.String getIssuanceConfig() { + java.lang.Object ref = issuanceConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + issuanceConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** *
-       * Output only. State of the managed certificate resource.
+       * The resource name for a
+       * [CertificateIssuanceConfig][google.cloud.certificatemanager.v1.CertificateIssuanceConfig]
+       * used to configure private PKI certificates in the format
+       * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+       * If this field is not set, the certificates will instead be publicly
+       * signed as documented at
+       * https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string issuance_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * @return The bytes for issuanceConfig. + */ + public com.google.protobuf.ByteString + getIssuanceConfigBytes() { + java.lang.Object ref = issuanceConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + issuanceConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The resource name for a
+       * [CertificateIssuanceConfig][google.cloud.certificatemanager.v1.CertificateIssuanceConfig]
+       * used to configure private PKI certificates in the format
+       * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+       * If this field is not set, the certificates will instead be publicly
+       * signed as documented at
+       * https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
+       * 
* - * @return The enum numeric value on the wire for state. + * string issuance_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * @param value The issuanceConfig to set. + * @return This builder for chaining. */ - @java.lang.Override - public int getStateValue() { - return state_; + public Builder setIssuanceConfig( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + issuanceConfig_ = value; + onChanged(); + return this; } /** + *
+       * The resource name for a
+       * [CertificateIssuanceConfig][google.cloud.certificatemanager.v1.CertificateIssuanceConfig]
+       * used to configure private PKI certificates in the format
+       * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+       * If this field is not set, the certificates will instead be publicly
+       * signed as documented at
+       * https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
+       * 
* + * string issuance_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearIssuanceConfig() { + + issuanceConfig_ = getDefaultInstance().getIssuanceConfig(); + onChanged(); + return this; + } + /** + *
+       * The resource name for a
+       * [CertificateIssuanceConfig][google.cloud.certificatemanager.v1.CertificateIssuanceConfig]
+       * used to configure private PKI certificates in the format
+       * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+       * If this field is not set, the certificates will instead be publicly
+       * signed as documented at
+       * https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
+       * 
* + * string issuance_config = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * @param value The bytes for issuanceConfig to set. + * @return This builder for chaining. + */ + public Builder setIssuanceConfigBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + issuanceConfig_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** *
        * Output only. State of the managed certificate resource.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + *
+       * Output only. State of the managed certificate resource.
+       * 
* + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State state = 4 [(.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. State of the managed certificate resource.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State - getState() { + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State result = - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State.valueOf( - state_); - return result == null - ? com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State - .UNRECOGNIZED - : result; + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State result = com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State.valueOf(state_); + return result == null ? com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State.UNRECOGNIZED : result; } /** - * - * *
        * Output only. State of the managed certificate resource.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ - public Builder setState( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State value) { + public Builder setState(com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Output only. State of the managed certificate resource.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue - provisioningIssue_; + private com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioningIssue_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue.Builder, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssueOrBuilder> - provisioningIssueBuilder_; + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Builder, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssueOrBuilder> provisioningIssueBuilder_; /** - * - * *
-       * Information about issues with provisioning a Managed Certificate.
+       * Output only. Information about issues with provisioning a Managed
+       * Certificate.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the provisioningIssue field is set. */ public boolean hasProvisioningIssue() { return provisioningIssueBuilder_ != null || provisioningIssue_ != null; } /** - * - * *
-       * Information about issues with provisioning a Managed Certificate.
+       * Output only. Information about issues with provisioning a Managed
+       * Certificate.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; - * - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The provisioningIssue. */ - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue - getProvisioningIssue() { + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue getProvisioningIssue() { if (provisioningIssueBuilder_ == null) { - return provisioningIssue_ == null - ? com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue.getDefaultInstance() - : provisioningIssue_; + return provisioningIssue_ == null ? com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.getDefaultInstance() : provisioningIssue_; } else { return provisioningIssueBuilder_.getMessage(); } } /** - * - * *
-       * Information about issues with provisioning a Managed Certificate.
+       * Output only. Information about issues with provisioning a Managed
+       * Certificate.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setProvisioningIssue( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue - value) { + public Builder setProvisioningIssue(com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue value) { if (provisioningIssueBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6123,20 +5131,15 @@ public Builder setProvisioningIssue( return this; } /** - * - * *
-       * Information about issues with provisioning a Managed Certificate.
+       * Output only. Information about issues with provisioning a Managed
+       * Certificate.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setProvisioningIssue( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue - .Builder - builderForValue) { + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Builder builderForValue) { if (provisioningIssueBuilder_ == null) { provisioningIssue_ = builderForValue.build(); onChanged(); @@ -6147,26 +5150,18 @@ public Builder setProvisioningIssue( return this; } /** - * - * *
-       * Information about issues with provisioning a Managed Certificate.
+       * Output only. Information about issues with provisioning a Managed
+       * Certificate.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeProvisioningIssue( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue - value) { + public Builder mergeProvisioningIssue(com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue value) { if (provisioningIssueBuilder_ == null) { if (provisioningIssue_ != null) { provisioningIssue_ = - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue.newBuilder(provisioningIssue_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.newBuilder(provisioningIssue_).mergeFrom(value).buildPartial(); } else { provisioningIssue_ = value; } @@ -6178,15 +5173,12 @@ public Builder mergeProvisioningIssue( return this; } /** - * - * *
-       * Information about issues with provisioning a Managed Certificate.
+       * Output only. Information about issues with provisioning a Managed
+       * Certificate.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearProvisioningIssue() { if (provisioningIssueBuilder_ == null) { @@ -6200,120 +5192,77 @@ public Builder clearProvisioningIssue() { return this; } /** - * - * *
-       * Information about issues with provisioning a Managed Certificate.
+       * Output only. Information about issues with provisioning a Managed
+       * Certificate.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue - .Builder - getProvisioningIssueBuilder() { - + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Builder getProvisioningIssueBuilder() { + onChanged(); return getProvisioningIssueFieldBuilder().getBuilder(); } /** - * - * *
-       * Information about issues with provisioning a Managed Certificate.
+       * Output only. Information about issues with provisioning a Managed
+       * Certificate.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssueOrBuilder - getProvisioningIssueOrBuilder() { + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssueOrBuilder getProvisioningIssueOrBuilder() { if (provisioningIssueBuilder_ != null) { return provisioningIssueBuilder_.getMessageOrBuilder(); } else { - return provisioningIssue_ == null - ? com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue.getDefaultInstance() - : provisioningIssue_; + return provisioningIssue_ == null ? + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.getDefaultInstance() : provisioningIssue_; } } /** - * - * *
-       * Information about issues with provisioning a Managed Certificate.
+       * Output only. Information about issues with provisioning a Managed
+       * Certificate.
        * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3; - * + * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue provisioning_issue = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue.Builder, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssueOrBuilder> + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Builder, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssueOrBuilder> getProvisioningIssueFieldBuilder() { if (provisioningIssueBuilder_ == null) { - provisioningIssueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssue.Builder, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .ProvisioningIssueOrBuilder>( - getProvisioningIssue(), getParentForChildren(), isClean()); + provisioningIssueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssue.Builder, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.ProvisioningIssueOrBuilder>( + getProvisioningIssue(), + getParentForChildren(), + isClean()); provisioningIssue_ = null; } return provisioningIssueBuilder_; } - private java.util.List< - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo> - authorizationAttemptInfo_ = java.util.Collections.emptyList(); - + private java.util.List authorizationAttemptInfo_ = + java.util.Collections.emptyList(); private void ensureAuthorizationAttemptInfoIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - authorizationAttemptInfo_ = - new java.util.ArrayList< - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo>(authorizationAttemptInfo_); + authorizationAttemptInfo_ = new java.util.ArrayList(authorizationAttemptInfo_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.Builder, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfoOrBuilder> - authorizationAttemptInfoBuilder_; + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.Builder, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfoOrBuilder> authorizationAttemptInfoBuilder_; /** - * - * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo> - getAuthorizationAttemptInfoList() { + public java.util.List getAuthorizationAttemptInfoList() { if (authorizationAttemptInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(authorizationAttemptInfo_); } else { @@ -6321,16 +5270,12 @@ private void ensureAuthorizationAttemptInfoIsMutable() { } } /** - * - * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getAuthorizationAttemptInfoCount() { if (authorizationAttemptInfoBuilder_ == null) { @@ -6340,20 +5285,14 @@ public int getAuthorizationAttemptInfoCount() { } } /** - * - * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - getAuthorizationAttemptInfo(int index) { + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo getAuthorizationAttemptInfo(int index) { if (authorizationAttemptInfoBuilder_ == null) { return authorizationAttemptInfo_.get(index); } else { @@ -6361,22 +5300,15 @@ public int getAuthorizationAttemptInfoCount() { } } /** - * - * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAuthorizationAttemptInfo( - int index, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - value) { + int index, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo value) { if (authorizationAttemptInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6390,22 +5322,15 @@ public Builder setAuthorizationAttemptInfo( return this; } /** - * - * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAuthorizationAttemptInfo( - int index, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.Builder - builderForValue) { + int index, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.Builder builderForValue) { if (authorizationAttemptInfoBuilder_ == null) { ensureAuthorizationAttemptInfoIsMutable(); authorizationAttemptInfo_.set(index, builderForValue.build()); @@ -6416,21 +5341,14 @@ public Builder setAuthorizationAttemptInfo( return this; } /** - * - * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addAuthorizationAttemptInfo( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - value) { + public Builder addAuthorizationAttemptInfo(com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo value) { if (authorizationAttemptInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6444,22 +5362,15 @@ public Builder addAuthorizationAttemptInfo( return this; } /** - * - * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAuthorizationAttemptInfo( - int index, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo - value) { + int index, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo value) { if (authorizationAttemptInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6473,21 +5384,15 @@ public Builder addAuthorizationAttemptInfo( return this; } /** - * - * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAuthorizationAttemptInfo( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.Builder - builderForValue) { + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.Builder builderForValue) { if (authorizationAttemptInfoBuilder_ == null) { ensureAuthorizationAttemptInfoIsMutable(); authorizationAttemptInfo_.add(builderForValue.build()); @@ -6498,22 +5403,15 @@ public Builder addAuthorizationAttemptInfo( return this; } /** - * - * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAuthorizationAttemptInfo( - int index, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.Builder - builderForValue) { + int index, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.Builder builderForValue) { if (authorizationAttemptInfoBuilder_ == null) { ensureAuthorizationAttemptInfoIsMutable(); authorizationAttemptInfo_.add(index, builderForValue.build()); @@ -6524,26 +5422,19 @@ public Builder addAuthorizationAttemptInfo( return this; } /** - * - * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllAuthorizationAttemptInfo( - java.lang.Iterable< - ? extends - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo> - values) { + java.lang.Iterable values) { if (authorizationAttemptInfoBuilder_ == null) { ensureAuthorizationAttemptInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, authorizationAttemptInfo_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, authorizationAttemptInfo_); onChanged(); } else { authorizationAttemptInfoBuilder_.addAllMessages(values); @@ -6551,16 +5442,12 @@ public Builder addAllAuthorizationAttemptInfo( return this; } /** - * - * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearAuthorizationAttemptInfo() { if (authorizationAttemptInfoBuilder_ == null) { @@ -6573,16 +5460,12 @@ public Builder clearAuthorizationAttemptInfo() { return this; } /** - * - * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeAuthorizationAttemptInfo(int index) { if (authorizationAttemptInfoBuilder_ == null) { @@ -6595,60 +5478,42 @@ public Builder removeAuthorizationAttemptInfo(int index) { return this; } /** - * - * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.Builder - getAuthorizationAttemptInfoBuilder(int index) { + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.Builder getAuthorizationAttemptInfoBuilder( + int index) { return getAuthorizationAttemptInfoFieldBuilder().getBuilder(index); } /** - * - * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfoOrBuilder - getAuthorizationAttemptInfoOrBuilder(int index) { + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfoOrBuilder getAuthorizationAttemptInfoOrBuilder( + int index) { if (authorizationAttemptInfoBuilder_ == null) { - return authorizationAttemptInfo_.get(index); - } else { + return authorizationAttemptInfo_.get(index); } else { return authorizationAttemptInfoBuilder_.getMessageOrBuilder(index); } } /** - * - * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - ? extends - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfoOrBuilder> - getAuthorizationAttemptInfoOrBuilderList() { + public java.util.List + getAuthorizationAttemptInfoOrBuilderList() { if (authorizationAttemptInfoBuilder_ != null) { return authorizationAttemptInfoBuilder_.getMessageOrBuilderList(); } else { @@ -6656,82 +5521,48 @@ public Builder removeAuthorizationAttemptInfo(int index) { } } /** - * - * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.Builder - addAuthorizationAttemptInfoBuilder() { - return getAuthorizationAttemptInfoFieldBuilder() - .addBuilder( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.getDefaultInstance()); + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.Builder addAuthorizationAttemptInfoBuilder() { + return getAuthorizationAttemptInfoFieldBuilder().addBuilder( + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.getDefaultInstance()); } /** - * - * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.Builder - addAuthorizationAttemptInfoBuilder(int index) { - return getAuthorizationAttemptInfoFieldBuilder() - .addBuilder( - index, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.getDefaultInstance()); + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.Builder addAuthorizationAttemptInfoBuilder( + int index) { + return getAuthorizationAttemptInfoFieldBuilder().addBuilder( + index, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.getDefaultInstance()); } /** - * - * *
-       * Output only. Detailed state of the latest authorization attempt for each domain
-       * specified for managed certificate resource.
+       * Output only. Detailed state of the latest authorization attempt for each
+       * domain specified for managed certificate resource.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo authorization_attempt_info = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.Builder> - getAuthorizationAttemptInfoBuilderList() { + public java.util.List + getAuthorizationAttemptInfoBuilderList() { return getAuthorizationAttemptInfoFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.Builder, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfoOrBuilder> + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.Builder, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfoOrBuilder> getAuthorizationAttemptInfoFieldBuilder() { if (authorizationAttemptInfoBuilder_ == null) { - authorizationAttemptInfoBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfo.Builder, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .AuthorizationAttemptInfoOrBuilder>( + authorizationAttemptInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.Builder, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfoOrBuilder>( authorizationAttemptInfo_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -6740,7 +5571,6 @@ public Builder removeAuthorizationAttemptInfo(int index) { } return authorizationAttemptInfoBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6753,33 +5583,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) - private static final com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate(); + DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate(); } - public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ManagedCertificate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ManagedCertificate(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ManagedCertificate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6791,24 +5629,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int typeCase_ = 0; private java.lang.Object type_; - public enum TypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SELF_MANAGED(5), MANAGED(11), TYPE_NOT_SET(0); private final int value; - private TypeCase(int value) { this.value = value; } @@ -6824,38 +5659,32 @@ public static TypeCase valueOf(int value) { public static TypeCase forNumber(int value) { switch (value) { - case 5: - return SELF_MANAGED; - case 11: - return MANAGED; - case 0: - return TYPE_NOT_SET; - default: - return null; + case 5: return SELF_MANAGED; + case 11: return MANAGED; + case 0: return TYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public TypeCase getTypeCase() { - return TypeCase.forNumber(typeCase_); + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * A user-defined name of the certificate. Certificate names must be unique
    * globally and match pattern `projects/*/locations/*/certificates/*`.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -6864,30 +5693,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; } } /** - * - * *
    * A user-defined name of the certificate. Certificate names must be unique
    * globally and match pattern `projects/*/locations/*/certificates/*`.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -6898,14 +5727,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 8; private volatile java.lang.Object description_; /** - * - * *
    * One or more paragraphs of text description of a certificate.
    * 
* * string description = 8; - * * @return The description. */ @java.lang.Override @@ -6914,29 +5740,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; } } /** - * - * *
    * One or more paragraphs of text description of a certificate.
    * 
* * string description = 8; - * * @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 { @@ -6947,15 +5773,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The creation timestamp of a Certificate.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -6963,15 +5785,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The creation timestamp of a Certificate.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -6979,14 +5797,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The creation timestamp of a Certificate.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -6996,15 +5811,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The last update timestamp of a Certificate.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -7012,15 +5823,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The last update timestamp of a Certificate.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -7028,14 +5835,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The last update timestamp of a Certificate.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -7043,23 +5847,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_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.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_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_; } @@ -7068,30 +5873,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Set of labels associated with a Certificate.
    * 
* * map<string, string> labels = 4; */ + @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(); } /** - * - * *
    * Set of labels associated with a Certificate.
    * 
@@ -7099,12 +5902,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Set of labels associated with a Certificate.
    * 
@@ -7112,16 +5914,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @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; } /** - * - * *
    * Set of labels associated with a Certificate.
    * 
@@ -7129,11 +5931,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 4; */ @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(); } @@ -7142,15 +5945,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int SELF_MANAGED_FIELD_NUMBER = 5; /** - * - * *
    * If set, defines data of a self-managed certificate.
    * 
* - * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; - * - * + * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; * @return Whether the selfManaged field is set. */ @java.lang.Override @@ -7158,56 +5957,42 @@ public boolean hasSelfManaged() { return typeCase_ == 5; } /** - * - * *
    * If set, defines data of a self-managed certificate.
    * 
* - * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; - * - * + * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; * @return The selfManaged. */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - getSelfManaged() { + public com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate getSelfManaged() { if (typeCase_ == 5) { - return (com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) type_; + return (com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) type_; } - return com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - .getDefaultInstance(); + return com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.getDefaultInstance(); } /** - * - * *
    * If set, defines data of a self-managed certificate.
    * 
* - * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; - * + * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificateOrBuilder - getSelfManagedOrBuilder() { + public com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificateOrBuilder getSelfManagedOrBuilder() { if (typeCase_ == 5) { - return (com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) type_; + return (com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) type_; } - return com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - .getDefaultInstance(); + return com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.getDefaultInstance(); } public static final int MANAGED_FIELD_NUMBER = 11; /** - * - * *
    * If set, contains configuration and state of a managed certificate.
    * 
* * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11; - * * @return Whether the managed field is set. */ @java.lang.Override @@ -7215,27 +6000,21 @@ public boolean hasManaged() { return typeCase_ == 11; } /** - * - * *
    * If set, contains configuration and state of a managed certificate.
    * 
* * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11; - * * @return The managed. */ @java.lang.Override public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate getManaged() { if (typeCase_ == 11) { - return (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) type_; + return (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) type_; } - return com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .getDefaultInstance(); + return com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.getDefaultInstance(); } /** - * - * *
    * If set, contains configuration and state of a managed certificate.
    * 
@@ -7243,63 +6022,53 @@ public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate get * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11; */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificateOrBuilder - getManagedOrBuilder() { + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificateOrBuilder getManagedOrBuilder() { if (typeCase_ == 11) { - return (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) type_; + return (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) type_; } - return com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .getDefaultInstance(); + return com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.getDefaultInstance(); } public static final int SAN_DNSNAMES_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList sanDnsnames_; /** - * - * *
-   * Output only. The list of Subject Alternative Names of dnsName type defined in the
-   * certificate (see RFC 5280 4.2.1.6).
-   * Managed certificates that haven't been provisioned yet have this field
-   * populated with a value of the managed.domains field.
+   * Output only. The list of Subject Alternative Names of dnsName type defined
+   * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+   * haven't been provisioned yet have this field populated with a value of the
+   * managed.domains field.
    * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the sanDnsnames. */ - public com.google.protobuf.ProtocolStringList getSanDnsnamesList() { + public com.google.protobuf.ProtocolStringList + getSanDnsnamesList() { return sanDnsnames_; } /** - * - * *
-   * Output only. The list of Subject Alternative Names of dnsName type defined in the
-   * certificate (see RFC 5280 4.2.1.6).
-   * Managed certificates that haven't been provisioned yet have this field
-   * populated with a value of the managed.domains field.
+   * Output only. The list of Subject Alternative Names of dnsName type defined
+   * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+   * haven't been provisioned yet have this field populated with a value of the
+   * managed.domains field.
    * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of sanDnsnames. */ public int getSanDnsnamesCount() { return sanDnsnames_.size(); } /** - * - * *
-   * Output only. The list of Subject Alternative Names of dnsName type defined in the
-   * certificate (see RFC 5280 4.2.1.6).
-   * Managed certificates that haven't been provisioned yet have this field
-   * populated with a value of the managed.domains field.
+   * Output only. The list of Subject Alternative Names of dnsName type defined
+   * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+   * haven't been provisioned yet have this field populated with a value of the
+   * managed.domains field.
    * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The sanDnsnames at the given index. */ @@ -7307,35 +6076,30 @@ public java.lang.String getSanDnsnames(int index) { return sanDnsnames_.get(index); } /** - * - * *
-   * Output only. The list of Subject Alternative Names of dnsName type defined in the
-   * certificate (see RFC 5280 4.2.1.6).
-   * Managed certificates that haven't been provisioned yet have this field
-   * populated with a value of the managed.domains field.
+   * Output only. The list of Subject Alternative Names of dnsName type defined
+   * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+   * haven't been provisioned yet have this field populated with a value of the
+   * managed.domains field.
    * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the sanDnsnames at the given index. */ - public com.google.protobuf.ByteString getSanDnsnamesBytes(int index) { + public com.google.protobuf.ByteString + getSanDnsnamesBytes(int index) { return sanDnsnames_.getByteString(index); } public static final int PEM_CERTIFICATE_FIELD_NUMBER = 9; private volatile java.lang.Object pemCertificate_; /** - * - * *
    * Output only. The PEM-encoded certificate chain.
    * 
* * string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pemCertificate. */ @java.lang.Override @@ -7344,29 +6108,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 certificate chain.
    * 
* * 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 { @@ -7377,15 +6141,11 @@ public com.google.protobuf.ByteString getPemCertificateBytes() { public static final int EXPIRE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * Output only. The expiry timestamp of a Certificate.
    * 
* - * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ @java.lang.Override @@ -7393,15 +6153,11 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * Output only. The expiry timestamp of a Certificate.
    * 
* - * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ @java.lang.Override @@ -7409,14 +6165,11 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * Output only. The expiry timestamp of a Certificate.
    * 
* - * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -7426,47 +6179,31 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int SCOPE_FIELD_NUMBER = 12; private int scope_; /** - * - * *
    * Immutable. The scope of the certificate.
    * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for scope. */ - @java.lang.Override - public int getScopeValue() { + @java.lang.Override public int getScopeValue() { return scope_; } /** - * - * *
    * Immutable. The scope of the certificate.
    * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE]; * @return The scope. */ - @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.Scope getScope() { + @java.lang.Override public com.google.cloud.certificatemanager.v1.Certificate.Scope getScope() { @SuppressWarnings("deprecation") - com.google.cloud.certificatemanager.v1.Certificate.Scope result = - com.google.cloud.certificatemanager.v1.Certificate.Scope.valueOf(scope_); - return result == null - ? com.google.cloud.certificatemanager.v1.Certificate.Scope.UNRECOGNIZED - : result; + com.google.cloud.certificatemanager.v1.Certificate.Scope result = com.google.cloud.certificatemanager.v1.Certificate.Scope.valueOf(scope_); + return result == null ? com.google.cloud.certificatemanager.v1.Certificate.Scope.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7478,7 +6215,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -7488,11 +6226,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (typeCase_ == 5) { - output.writeMessage( - 5, (com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) type_); + output.writeMessage(5, (com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) type_); } for (int i = 0; i < sanDnsnames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sanDnsnames_.getRaw(i)); @@ -7507,13 +6248,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 9, pemCertificate_); } if (typeCase_ == 11) { - output.writeMessage( - 11, (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) type_); + output.writeMessage(11, (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) type_); } if (scope_ != com.google.cloud.certificatemanager.v1.Certificate.Scope.DEFAULT.getNumber()) { output.writeEnum(12, scope_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -7526,25 +6266,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, 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(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, 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(4, labels__); } if (typeCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) type_); } { int dataSize = 0; @@ -7555,7 +6296,8 @@ public int getSerializedSize() { size += 1 * getSanDnsnamesList().size(); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getExpireTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, description_); @@ -7564,14 +6306,14 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, pemCertificate_); } if (typeCase_ == 11) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) type_); } if (scope_ != com.google.cloud.certificatemanager.v1.Certificate.Scope.DEFAULT.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, scope_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, scope_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -7579,44 +6321,53 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.certificatemanager.v1.Certificate)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.Certificate other = - (com.google.cloud.certificatemanager.v1.Certificate) obj; + com.google.cloud.certificatemanager.v1.Certificate other = (com.google.cloud.certificatemanager.v1.Certificate) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (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 (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getSanDnsnamesList().equals(other.getSanDnsnamesList())) return false; - if (!getPemCertificate().equals(other.getPemCertificate())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getSanDnsnamesList() + .equals(other.getSanDnsnamesList())) return false; + if (!getPemCertificate() + .equals(other.getPemCertificate())) 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 (scope_ != other.scope_) return false; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 5: - if (!getSelfManaged().equals(other.getSelfManaged())) return false; + if (!getSelfManaged() + .equals(other.getSelfManaged())) return false; break; case 11: - if (!getManaged().equals(other.getManaged())) return false; + if (!getManaged() + .equals(other.getManaged())) return false; break; case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7667,168 +6418,157 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.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.certificatemanager.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.certificatemanager.v1.Certificate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.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.certificatemanager.v1.Certificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.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.certificatemanager.v1.Certificate parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.Certificate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.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.certificatemanager.v1.Certificate parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.Certificate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.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.certificatemanager.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.certificatemanager.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.certificatemanager.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; } /** - * - * *
    * Defines TLS certificate.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.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.certificatemanager.v1.Certificate) com.google.cloud.certificatemanager.v1.CertificateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_Certificate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: 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 4: 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.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_Certificate_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.Certificate.class, - com.google.cloud.certificatemanager.v1.Certificate.Builder.class); + com.google.cloud.certificatemanager.v1.Certificate.class, com.google.cloud.certificatemanager.v1.Certificate.Builder.class); } // Construct using com.google.cloud.certificatemanager.v1.Certificate.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -7849,6 +6589,12 @@ public Builder clear() { updateTimeBuilder_ = null; } internalGetMutableLabels().clear(); + if (selfManagedBuilder_ != null) { + selfManagedBuilder_.clear(); + } + if (managedBuilder_ != null) { + managedBuilder_.clear(); + } sanDnsnames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); pemCertificate_ = ""; @@ -7867,9 +6613,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_Certificate_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_Certificate_descriptor; } @java.lang.Override @@ -7888,8 +6634,7 @@ public com.google.cloud.certificatemanager.v1.Certificate build() { @java.lang.Override public com.google.cloud.certificatemanager.v1.Certificate buildPartial() { - com.google.cloud.certificatemanager.v1.Certificate result = - new com.google.cloud.certificatemanager.v1.Certificate(this); + com.google.cloud.certificatemanager.v1.Certificate result = new com.google.cloud.certificatemanager.v1.Certificate(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; @@ -7940,39 +6685,38 @@ public com.google.cloud.certificatemanager.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.certificatemanager.v1.Certificate) { - return mergeFrom((com.google.cloud.certificatemanager.v1.Certificate) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.Certificate)other); } else { super.mergeFrom(other); return this; @@ -7980,8 +6724,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.certificatemanager.v1.Certificate other) { - if (other == com.google.cloud.certificatemanager.v1.Certificate.getDefaultInstance()) - return this; + if (other == com.google.cloud.certificatemanager.v1.Certificate.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -7996,7 +6739,8 @@ public Builder mergeFrom(com.google.cloud.certificatemanager.v1.Certificate othe if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (!other.sanDnsnames_.isEmpty()) { if (sanDnsnames_.isEmpty()) { sanDnsnames_ = other.sanDnsnames_; @@ -8018,22 +6762,19 @@ public Builder mergeFrom(com.google.cloud.certificatemanager.v1.Certificate othe setScopeValue(other.getScopeValue()); } switch (other.getTypeCase()) { - case SELF_MANAGED: - { - mergeSelfManaged(other.getSelfManaged()); - break; - } - case MANAGED: - { - mergeManaged(other.getManaged()); - break; - } - case TYPE_NOT_SET: - { - break; - } + case SELF_MANAGED: { + mergeSelfManaged(other.getSelfManaged()); + break; + } + case MANAGED: { + mergeManaged(other.getManaged()); + break; + } + case TYPE_NOT_SET: { + break; + } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -8048,26 +6789,107 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.Certificate parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 34 + case 42: { + input.readMessage( + getSelfManagedFieldBuilder().getBuilder(), + extensionRegistry); + typeCase_ = 5; + break; + } // case 42 + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSanDnsnamesIsMutable(); + sanDnsnames_.add(s); + break; + } // case 50 + case 58: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 58 + case 66: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: { + pemCertificate_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 90: { + input.readMessage( + getManagedFieldBuilder().getBuilder(), + extensionRegistry); + typeCase_ = 11; + break; + } // case 90 + case 96: { + scope_ = input.readEnum(); + + break; + } // case 96 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.Certificate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int typeCase_ = 0; private java.lang.Object type_; - - public TypeCase getTypeCase() { - return TypeCase.forNumber(typeCase_); + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); } public Builder clearType() { @@ -8081,21 +6903,19 @@ public Builder clearType() { private java.lang.Object name_ = ""; /** - * - * *
      * A user-defined name of the certificate. Certificate names must be unique
      * globally and match pattern `projects/*/locations/*/certificates/*`.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -8104,22 +6924,21 @@ public java.lang.String getName() { } } /** - * - * *
      * A user-defined name of the certificate. Certificate names must be unique
      * globally and match pattern `projects/*/locations/*/certificates/*`.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -8127,64 +6946,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * A user-defined name of the certificate. Certificate names must be unique
      * globally and match pattern `projects/*/locations/*/certificates/*`.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * A user-defined name of the certificate. Certificate names must be unique
      * globally and match pattern `projects/*/locations/*/certificates/*`.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * A user-defined name of the certificate. Certificate names must be unique
      * globally and match pattern `projects/*/locations/*/certificates/*`.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -8192,20 +7004,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * One or more paragraphs of text description of a certificate.
      * 
* * string description = 8; - * * @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; @@ -8214,21 +7024,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * One or more paragraphs of text description of a certificate.
      * 
* * string description = 8; - * * @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 { @@ -8236,61 +7045,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * One or more paragraphs of text description of a certificate.
      * 
* * string description = 8; - * * @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; } /** - * - * *
      * One or more paragraphs of text description of a certificate.
      * 
* * string description = 8; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * One or more paragraphs of text description of a certificate.
      * 
* * string description = 8; - * * @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; @@ -8298,58 +7100,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 creation timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The creation timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The creation timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -8365,17 +7148,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -8386,21 +7166,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The creation timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -8412,15 +7188,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -8434,64 +7206,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The creation timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The creation timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The creation timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -8499,58 +7255,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The last update timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The last update timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The last update timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -8566,17 +7303,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -8587,21 +7321,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The last update timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -8613,15 +7343,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -8635,84 +7361,69 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The last update timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The last update timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The last update timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - 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(); @@ -8724,30 +7435,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Set of labels associated with a Certificate.
      * 
* * map<string, string> labels = 4; */ + @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(); } /** - * - * *
      * Set of labels associated with a Certificate.
      * 
@@ -8755,12 +7464,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Set of labels associated with a Certificate.
      * 
@@ -8768,17 +7476,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @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; } /** - * - * *
      * Set of labels associated with a Certificate.
      * 
@@ -8786,11 +7493,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @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(); } @@ -8798,80 +7506,75 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Set of labels associated with a Certificate.
      * 
* * map<string, string> labels = 4; */ - 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(); } /** - * - * *
      * Set of labels associated with a Certificate.
      * 
* * map<string, string> labels = 4; */ - 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; } /** - * - * *
      * Set of labels associated with a Certificate.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate, - com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.Builder, - com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificateOrBuilder> - selfManagedBuilder_; + com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate, com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.Builder, com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificateOrBuilder> selfManagedBuilder_; /** - * - * *
      * If set, defines data of a self-managed certificate.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; - * - * + * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; * @return Whether the selfManaged field is set. */ @java.lang.Override @@ -8879,48 +7582,35 @@ public boolean hasSelfManaged() { return typeCase_ == 5; } /** - * - * *
      * If set, defines data of a self-managed certificate.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; - * - * + * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; * @return The selfManaged. */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - getSelfManaged() { + public com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate getSelfManaged() { if (selfManagedBuilder_ == null) { if (typeCase_ == 5) { return (com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) type_; } - return com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - .getDefaultInstance(); + return com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.getDefaultInstance(); } else { if (typeCase_ == 5) { return selfManagedBuilder_.getMessage(); } - return com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - .getDefaultInstance(); + return com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.getDefaultInstance(); } } /** - * - * *
      * If set, defines data of a self-managed certificate.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; - * + * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; */ - public Builder setSelfManaged( - com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate value) { + public Builder setSelfManaged(com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate value) { if (selfManagedBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8934,19 +7624,14 @@ public Builder setSelfManaged( return this; } /** - * - * *
      * If set, defines data of a self-managed certificate.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; - * + * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; */ public Builder setSelfManaged( - com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.Builder - builderForValue) { + com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.Builder builderForValue) { if (selfManagedBuilder_ == null) { type_ = builderForValue.build(); onChanged(); @@ -8957,29 +7642,18 @@ public Builder setSelfManaged( return this; } /** - * - * *
      * If set, defines data of a self-managed certificate.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; - * + * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; */ - public Builder mergeSelfManaged( - com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate value) { + public Builder mergeSelfManaged(com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate value) { if (selfManagedBuilder_ == null) { - if (typeCase_ == 5 - && type_ - != com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - .getDefaultInstance()) { - type_ = - com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.newBuilder( - (com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) - type_) - .mergeFrom(value) - .buildPartial(); + if (typeCase_ == 5 && + type_ != com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.getDefaultInstance()) { + type_ = com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.newBuilder((com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) type_) + .mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -8995,15 +7669,11 @@ public Builder mergeSelfManaged( return this; } /** - * - * *
      * If set, defines data of a self-managed certificate.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; - * + * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; */ public Builder clearSelfManaged() { if (selfManagedBuilder_ == null) { @@ -9022,96 +7692,67 @@ public Builder clearSelfManaged() { return this; } /** - * - * *
      * If set, defines data of a self-managed certificate.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; - * + * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; */ - public com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.Builder - getSelfManagedBuilder() { + public com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.Builder getSelfManagedBuilder() { return getSelfManagedFieldBuilder().getBuilder(); } /** - * - * *
      * If set, defines data of a self-managed certificate.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; - * + * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificateOrBuilder - getSelfManagedOrBuilder() { + public com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificateOrBuilder getSelfManagedOrBuilder() { if ((typeCase_ == 5) && (selfManagedBuilder_ != null)) { return selfManagedBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 5) { return (com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) type_; } - return com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - .getDefaultInstance(); + return com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.getDefaultInstance(); } } /** - * - * *
      * If set, defines data of a self-managed certificate.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; - * + * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate, - com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.Builder, - com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificateOrBuilder> + com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate, com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.Builder, com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificateOrBuilder> getSelfManagedFieldBuilder() { if (selfManagedBuilder_ == null) { if (!(typeCase_ == 5)) { - type_ = - com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate - .getDefaultInstance(); - } - selfManagedBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate, - com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.Builder, - com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificateOrBuilder>( + type_ = com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.getDefaultInstance(); + } + selfManagedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate, com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate.Builder, com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificateOrBuilder>( (com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 5; - onChanged(); - ; + onChanged();; return selfManagedBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.Builder, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificateOrBuilder> - managedBuilder_; + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.Builder, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificateOrBuilder> managedBuilder_; /** - * - * *
      * If set, contains configuration and state of a managed certificate.
      * 
* * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11; - * * @return Whether the managed field is set. */ @java.lang.Override @@ -9119,14 +7760,11 @@ public boolean hasManaged() { return typeCase_ == 11; } /** - * - * *
      * If set, contains configuration and state of a managed certificate.
      * 
* * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11; - * * @return The managed. */ @java.lang.Override @@ -9135,27 +7773,22 @@ public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate get if (typeCase_ == 11) { return (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) type_; } - return com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .getDefaultInstance(); + return com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.getDefaultInstance(); } else { if (typeCase_ == 11) { return managedBuilder_.getMessage(); } - return com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .getDefaultInstance(); + return com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.getDefaultInstance(); } } /** - * - * *
      * If set, contains configuration and state of a managed certificate.
      * 
* * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11; */ - public Builder setManaged( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate value) { + public Builder setManaged(com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate value) { if (managedBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9169,8 +7802,6 @@ public Builder setManaged( return this; } /** - * - * *
      * If set, contains configuration and state of a managed certificate.
      * 
@@ -9178,8 +7809,7 @@ public Builder setManaged( * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11; */ public Builder setManaged( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.Builder - builderForValue) { + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.Builder builderForValue) { if (managedBuilder_ == null) { type_ = builderForValue.build(); onChanged(); @@ -9190,26 +7820,18 @@ public Builder setManaged( return this; } /** - * - * *
      * If set, contains configuration and state of a managed certificate.
      * 
* * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11; */ - public Builder mergeManaged( - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate value) { + public Builder mergeManaged(com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate value) { if (managedBuilder_ == null) { - if (typeCase_ == 11 - && type_ - != com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .getDefaultInstance()) { - type_ = - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.newBuilder( - (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) type_) - .mergeFrom(value) - .buildPartial(); + if (typeCase_ == 11 && + type_ != com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.getDefaultInstance()) { + type_ = com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.newBuilder((com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) type_) + .mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -9225,8 +7847,6 @@ public Builder mergeManaged( return this; } /** - * - * *
      * If set, contains configuration and state of a managed certificate.
      * 
@@ -9250,21 +7870,16 @@ public Builder clearManaged() { return this; } /** - * - * *
      * If set, contains configuration and state of a managed certificate.
      * 
* * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11; */ - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.Builder - getManagedBuilder() { + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.Builder getManagedBuilder() { return getManagedFieldBuilder().getBuilder(); } /** - * - * *
      * If set, contains configuration and state of a managed certificate.
      * 
@@ -9272,21 +7887,17 @@ public Builder clearManaged() { * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11; */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificateOrBuilder - getManagedOrBuilder() { + public com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificateOrBuilder getManagedOrBuilder() { if ((typeCase_ == 11) && (managedBuilder_ != null)) { return managedBuilder_.getMessageOrBuilder(); } else { if (typeCase_ == 11) { return (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) type_; } - return com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .getDefaultInstance(); + return com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.getDefaultInstance(); } } /** - * - * *
      * If set, contains configuration and state of a managed certificate.
      * 
@@ -9294,87 +7905,69 @@ public Builder clearManaged() { * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.Builder, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificateOrBuilder> + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.Builder, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificateOrBuilder> getManagedFieldBuilder() { if (managedBuilder_ == null) { if (!(typeCase_ == 11)) { - type_ = - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate - .getDefaultInstance(); - } - managedBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.Builder, - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificateOrBuilder>( + type_ = com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.getDefaultInstance(); + } + managedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.Builder, com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificateOrBuilder>( (com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 11; - onChanged(); - ; + onChanged();; return managedBuilder_; } - private com.google.protobuf.LazyStringList sanDnsnames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList sanDnsnames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSanDnsnamesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { sanDnsnames_ = new com.google.protobuf.LazyStringArrayList(sanDnsnames_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
-     * Output only. The list of Subject Alternative Names of dnsName type defined in the
-     * certificate (see RFC 5280 4.2.1.6).
-     * Managed certificates that haven't been provisioned yet have this field
-     * populated with a value of the managed.domains field.
+     * Output only. The list of Subject Alternative Names of dnsName type defined
+     * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+     * haven't been provisioned yet have this field populated with a value of the
+     * managed.domains field.
      * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the sanDnsnames. */ - public com.google.protobuf.ProtocolStringList getSanDnsnamesList() { + public com.google.protobuf.ProtocolStringList + getSanDnsnamesList() { return sanDnsnames_.getUnmodifiableView(); } /** - * - * *
-     * Output only. The list of Subject Alternative Names of dnsName type defined in the
-     * certificate (see RFC 5280 4.2.1.6).
-     * Managed certificates that haven't been provisioned yet have this field
-     * populated with a value of the managed.domains field.
+     * Output only. The list of Subject Alternative Names of dnsName type defined
+     * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+     * haven't been provisioned yet have this field populated with a value of the
+     * managed.domains field.
      * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of sanDnsnames. */ public int getSanDnsnamesCount() { return sanDnsnames_.size(); } /** - * - * *
-     * Output only. The list of Subject Alternative Names of dnsName type defined in the
-     * certificate (see RFC 5280 4.2.1.6).
-     * Managed certificates that haven't been provisioned yet have this field
-     * populated with a value of the managed.domains field.
+     * Output only. The list of Subject Alternative Names of dnsName type defined
+     * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+     * haven't been provisioned yet have this field populated with a value of the
+     * managed.domains field.
      * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The sanDnsnames at the given index. */ @@ -9382,105 +7975,95 @@ public java.lang.String getSanDnsnames(int index) { return sanDnsnames_.get(index); } /** - * - * *
-     * Output only. The list of Subject Alternative Names of dnsName type defined in the
-     * certificate (see RFC 5280 4.2.1.6).
-     * Managed certificates that haven't been provisioned yet have this field
-     * populated with a value of the managed.domains field.
+     * Output only. The list of Subject Alternative Names of dnsName type defined
+     * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+     * haven't been provisioned yet have this field populated with a value of the
+     * managed.domains field.
      * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the sanDnsnames at the given index. */ - public com.google.protobuf.ByteString getSanDnsnamesBytes(int index) { + public com.google.protobuf.ByteString + getSanDnsnamesBytes(int index) { return sanDnsnames_.getByteString(index); } /** - * - * *
-     * Output only. The list of Subject Alternative Names of dnsName type defined in the
-     * certificate (see RFC 5280 4.2.1.6).
-     * Managed certificates that haven't been provisioned yet have this field
-     * populated with a value of the managed.domains field.
+     * Output only. The list of Subject Alternative Names of dnsName type defined
+     * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+     * haven't been provisioned yet have this field populated with a value of the
+     * managed.domains field.
      * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index to set the value at. * @param value The sanDnsnames to set. * @return This builder for chaining. */ - public Builder setSanDnsnames(int index, java.lang.String value) { + public Builder setSanDnsnames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSanDnsnamesIsMutable(); + throw new NullPointerException(); + } + ensureSanDnsnamesIsMutable(); sanDnsnames_.set(index, value); onChanged(); return this; } /** - * - * *
-     * Output only. The list of Subject Alternative Names of dnsName type defined in the
-     * certificate (see RFC 5280 4.2.1.6).
-     * Managed certificates that haven't been provisioned yet have this field
-     * populated with a value of the managed.domains field.
+     * Output only. The list of Subject Alternative Names of dnsName type defined
+     * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+     * haven't been provisioned yet have this field populated with a value of the
+     * managed.domains field.
      * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The sanDnsnames to add. * @return This builder for chaining. */ - public Builder addSanDnsnames(java.lang.String value) { + public Builder addSanDnsnames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSanDnsnamesIsMutable(); + throw new NullPointerException(); + } + ensureSanDnsnamesIsMutable(); sanDnsnames_.add(value); onChanged(); return this; } /** - * - * *
-     * Output only. The list of Subject Alternative Names of dnsName type defined in the
-     * certificate (see RFC 5280 4.2.1.6).
-     * Managed certificates that haven't been provisioned yet have this field
-     * populated with a value of the managed.domains field.
+     * Output only. The list of Subject Alternative Names of dnsName type defined
+     * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+     * haven't been provisioned yet have this field populated with a value of the
+     * managed.domains field.
      * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param values The sanDnsnames to add. * @return This builder for chaining. */ - public Builder addAllSanDnsnames(java.lang.Iterable values) { + public Builder addAllSanDnsnames( + java.lang.Iterable values) { ensureSanDnsnamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sanDnsnames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sanDnsnames_); onChanged(); return this; } /** - * - * *
-     * Output only. The list of Subject Alternative Names of dnsName type defined in the
-     * certificate (see RFC 5280 4.2.1.6).
-     * Managed certificates that haven't been provisioned yet have this field
-     * populated with a value of the managed.domains field.
+     * Output only. The list of Subject Alternative Names of dnsName type defined
+     * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+     * haven't been provisioned yet have this field populated with a value of the
+     * managed.domains field.
      * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearSanDnsnames() { @@ -9490,25 +8073,23 @@ public Builder clearSanDnsnames() { return this; } /** - * - * *
-     * Output only. The list of Subject Alternative Names of dnsName type defined in the
-     * certificate (see RFC 5280 4.2.1.6).
-     * Managed certificates that haven't been provisioned yet have this field
-     * populated with a value of the managed.domains field.
+     * Output only. The list of Subject Alternative Names of dnsName type defined
+     * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+     * haven't been provisioned yet have this field populated with a value of the
+     * managed.domains field.
      * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes of the sanDnsnames to add. * @return This builder for chaining. */ - public Builder addSanDnsnamesBytes(com.google.protobuf.ByteString value) { + public Builder addSanDnsnamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureSanDnsnamesIsMutable(); sanDnsnames_.add(value); onChanged(); @@ -9517,20 +8098,18 @@ public Builder addSanDnsnamesBytes(com.google.protobuf.ByteString value) { private java.lang.Object pemCertificate_ = ""; /** - * - * *
      * Output only. The PEM-encoded certificate chain.
      * 
* * 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; @@ -9539,21 +8118,20 @@ public java.lang.String getPemCertificate() { } } /** - * - * *
      * Output only. The PEM-encoded certificate chain.
      * 
* * 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 { @@ -9561,61 +8139,54 @@ public com.google.protobuf.ByteString getPemCertificateBytes() { } } /** - * - * *
      * Output only. The PEM-encoded certificate chain.
      * 
* * 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 certificate chain.
      * 
* * 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 certificate chain.
      * 
* * 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; @@ -9623,58 +8194,39 @@ public Builder setPemCertificateBytes(com.google.protobuf.ByteString value) { 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 expiry timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTimeBuilder_ != null || expireTime_ != null; } /** - * - * *
      * Output only. The expiry timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 7 [(.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 expiry timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -9690,17 +8242,14 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The expiry timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 7 [(.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(); @@ -9711,21 +8260,17 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The expiry timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 7 [(.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; } @@ -9737,15 +8282,11 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The expiry timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearExpireTime() { if (expireTimeBuilder_ == null) { @@ -9759,64 +8300,48 @@ public Builder clearExpireTime() { return this; } /** - * - * *
      * Output only. The expiry timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - + onChanged(); return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The expiry timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 7 [(.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 expiry timestamp of a Certificate.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_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> 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_; @@ -9824,75 +8349,51 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private int scope_ = 0; /** - * - * *
      * Immutable. The scope of the certificate.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for scope. */ - @java.lang.Override - public int getScopeValue() { + @java.lang.Override public int getScopeValue() { return scope_; } /** - * - * *
      * Immutable. The scope of the certificate.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The enum numeric value on the wire for scope to set. * @return This builder for chaining. */ public Builder setScopeValue(int value) { - + scope_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. The scope of the certificate.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE]; * @return The scope. */ @java.lang.Override public com.google.cloud.certificatemanager.v1.Certificate.Scope getScope() { @SuppressWarnings("deprecation") - com.google.cloud.certificatemanager.v1.Certificate.Scope result = - com.google.cloud.certificatemanager.v1.Certificate.Scope.valueOf(scope_); - return result == null - ? com.google.cloud.certificatemanager.v1.Certificate.Scope.UNRECOGNIZED - : result; + com.google.cloud.certificatemanager.v1.Certificate.Scope result = com.google.cloud.certificatemanager.v1.Certificate.Scope.valueOf(scope_); + return result == null ? com.google.cloud.certificatemanager.v1.Certificate.Scope.UNRECOGNIZED : result; } /** - * - * *
      * Immutable. The scope of the certificate.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The scope to set. * @return This builder for chaining. */ @@ -9900,33 +8401,28 @@ public Builder setScope(com.google.cloud.certificatemanager.v1.Certificate.Scope if (value == null) { throw new NullPointerException(); } - + scope_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Immutable. The scope of the certificate.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearScope() { - + scope_ = 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); } @@ -9936,12 +8432,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.Certificate) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.Certificate) private static final com.google.cloud.certificatemanager.v1.Certificate DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.Certificate(); } @@ -9950,16 +8446,27 @@ public static com.google.cloud.certificatemanager.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9974,4 +8481,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.certificatemanager.v1.Certificate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfig.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfig.java new file mode 100644 index 000000000000..209d04a2ab57 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfig.java @@ -0,0 +1,3746 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +/** + *
+ * CertificateIssuanceConfig specifies how to issue and manage a certificate.
+ * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.CertificateIssuanceConfig} + */ +public final class CertificateIssuanceConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.CertificateIssuanceConfig) + CertificateIssuanceConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use CertificateIssuanceConfig.newBuilder() to construct. + private CertificateIssuanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CertificateIssuanceConfig() { + name_ = ""; + description_ = ""; + keyAlgorithm_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CertificateIssuanceConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.class, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder.class); + } + + /** + *
+   * The type of keypair to generate.
+   * 
+ * + * Protobuf enum {@code google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm} + */ + public enum KeyAlgorithm + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Unspecified key algorithm.
+     * 
+ * + * KEY_ALGORITHM_UNSPECIFIED = 0; + */ + KEY_ALGORITHM_UNSPECIFIED(0), + /** + *
+     * Specifies RSA with a 2048-bit modulus.
+     * 
+ * + * RSA_2048 = 1; + */ + RSA_2048(1), + /** + *
+     * Specifies ECDSA with curve P256.
+     * 
+ * + * ECDSA_P256 = 4; + */ + ECDSA_P256(4), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Unspecified key algorithm.
+     * 
+ * + * KEY_ALGORITHM_UNSPECIFIED = 0; + */ + public static final int KEY_ALGORITHM_UNSPECIFIED_VALUE = 0; + /** + *
+     * Specifies RSA with a 2048-bit modulus.
+     * 
+ * + * RSA_2048 = 1; + */ + public static final int RSA_2048_VALUE = 1; + /** + *
+     * Specifies ECDSA with curve P256.
+     * 
+ * + * ECDSA_P256 = 4; + */ + public static final int ECDSA_P256_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static KeyAlgorithm valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static KeyAlgorithm forNumber(int value) { + switch (value) { + case 0: return KEY_ALGORITHM_UNSPECIFIED; + case 1: return RSA_2048; + case 4: return ECDSA_P256; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + KeyAlgorithm> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public KeyAlgorithm findValueByNumber(int number) { + return KeyAlgorithm.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() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final KeyAlgorithm[] VALUES = values(); + + public static KeyAlgorithm valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private KeyAlgorithm(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm) + } + + public interface CertificateAuthorityConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Defines a CertificateAuthorityServiceConfig.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + * @return Whether the certificateAuthorityServiceConfig field is set. + */ + boolean hasCertificateAuthorityServiceConfig(); + /** + *
+     * Defines a CertificateAuthorityServiceConfig.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + * @return The certificateAuthorityServiceConfig. + */ + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig getCertificateAuthorityServiceConfig(); + /** + *
+     * Defines a CertificateAuthorityServiceConfig.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + */ + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfigOrBuilder getCertificateAuthorityServiceConfigOrBuilder(); + + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.KindCase getKindCase(); + } + /** + *
+   * The CA that issues the workload certificate. It includes CA address, type,
+   * authentication to CA service, etc.
+   * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig} + */ + public static final class CertificateAuthorityConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig) + CertificateAuthorityConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use CertificateAuthorityConfig.newBuilder() to construct. + private CertificateAuthorityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CertificateAuthorityConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CertificateAuthorityConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.class, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.Builder.class); + } + + public interface CertificateAuthorityServiceConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * Required. A CA pool resource used to issue a certificate.
+       * The CA pool string has a relative resource path following the form
+       * "projects/{project}/locations/{location}/caPools/{ca_pool}".
+       * 
+ * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The caPool. + */ + java.lang.String getCaPool(); + /** + *
+       * Required. A CA pool resource used to issue a certificate.
+       * The CA pool string has a relative resource path following the form
+       * "projects/{project}/locations/{location}/caPools/{ca_pool}".
+       * 
+ * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for caPool. + */ + com.google.protobuf.ByteString + getCaPoolBytes(); + } + /** + *
+     * Contains information required to contact CA service.
+     * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig} + */ + public static final class CertificateAuthorityServiceConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig) + CertificateAuthorityServiceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use CertificateAuthorityServiceConfig.newBuilder() to construct. + private CertificateAuthorityServiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CertificateAuthorityServiceConfig() { + caPool_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CertificateAuthorityServiceConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_CertificateAuthorityServiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_CertificateAuthorityServiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig.class, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig.Builder.class); + } + + public static final int CA_POOL_FIELD_NUMBER = 1; + private volatile java.lang.Object caPool_; + /** + *
+       * Required. A CA pool resource used to issue a certificate.
+       * The CA pool string has a relative resource path following the form
+       * "projects/{project}/locations/{location}/caPools/{ca_pool}".
+       * 
+ * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The caPool. + */ + @java.lang.Override + public java.lang.String getCaPool() { + java.lang.Object ref = caPool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caPool_ = s; + return s; + } + } + /** + *
+       * Required. A CA pool resource used to issue a certificate.
+       * The CA pool string has a relative resource path following the form
+       * "projects/{project}/locations/{location}/caPools/{ca_pool}".
+       * 
+ * + * 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() { + 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); + caPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caPool_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, caPool_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig)) { + return super.equals(obj); + } + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig other = (com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig) obj; + + if (!getCaPool() + .equals(other.getCaPool())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CA_POOL_FIELD_NUMBER; + hash = (53 * hash) + getCaPool().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig 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.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig 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.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+       * Contains information required to contact CA service.
+       * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig) + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_CertificateAuthorityServiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_CertificateAuthorityServiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig.class, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig.Builder.class); + } + + // Construct using com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + caPool_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_CertificateAuthorityServiceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig build() { + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig buildPartial() { + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig result = new com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig(this); + result.caPool_ = caPool_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig) { + return mergeFrom((com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig other) { + if (other == com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig.getDefaultInstance()) return this; + if (!other.getCaPool().isEmpty()) { + caPool_ = other.caPool_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + caPool_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object caPool_ = ""; + /** + *
+         * Required. A CA pool resource used to issue a certificate.
+         * The CA pool string has a relative resource path following the form
+         * "projects/{project}/locations/{location}/caPools/{ca_pool}".
+         * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + caPool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Required. A CA pool resource used to issue a certificate.
+         * The CA pool string has a relative resource path following the form
+         * "projects/{project}/locations/{location}/caPools/{ca_pool}".
+         * 
+ * + * string ca_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for caPool. + */ + 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); + caPool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Required. A CA pool resource used to issue a certificate.
+         * The CA pool string has a relative resource path following the form
+         * "projects/{project}/locations/{location}/caPools/{ca_pool}".
+         * 
+ * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + + caPool_ = value; + onChanged(); + return this; + } + /** + *
+         * Required. A CA pool resource used to issue a certificate.
+         * The CA pool string has a relative resource path following the form
+         * "projects/{project}/locations/{location}/caPools/{ca_pool}".
+         * 
+ * + * 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. A CA pool resource used to issue a certificate.
+         * The CA pool string has a relative resource path following the form
+         * "projects/{project}/locations/{location}/caPools/{ca_pool}".
+         * 
+ * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + caPool_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig) + private static final com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig(); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateAuthorityServiceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int kindCase_ = 0; + private java.lang.Object kind_; + public enum KindCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CERTIFICATE_AUTHORITY_SERVICE_CONFIG(1), + KIND_NOT_SET(0); + private final int value; + private KindCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static KindCase valueOf(int value) { + return forNumber(value); + } + + public static KindCase forNumber(int value) { + switch (value) { + case 1: return CERTIFICATE_AUTHORITY_SERVICE_CONFIG; + case 0: return KIND_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public KindCase + getKindCase() { + return KindCase.forNumber( + kindCase_); + } + + public static final int CERTIFICATE_AUTHORITY_SERVICE_CONFIG_FIELD_NUMBER = 1; + /** + *
+     * Defines a CertificateAuthorityServiceConfig.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + * @return Whether the certificateAuthorityServiceConfig field is set. + */ + @java.lang.Override + public boolean hasCertificateAuthorityServiceConfig() { + return kindCase_ == 1; + } + /** + *
+     * Defines a CertificateAuthorityServiceConfig.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + * @return The certificateAuthorityServiceConfig. + */ + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig getCertificateAuthorityServiceConfig() { + if (kindCase_ == 1) { + return (com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig) kind_; + } + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig.getDefaultInstance(); + } + /** + *
+     * Defines a CertificateAuthorityServiceConfig.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + */ + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfigOrBuilder getCertificateAuthorityServiceConfigOrBuilder() { + if (kindCase_ == 1) { + return (com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig) kind_; + } + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (kindCase_ == 1) { + output.writeMessage(1, (com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig) kind_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (kindCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig) kind_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig)) { + return super.equals(obj); + } + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig other = (com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig) obj; + + if (!getKindCase().equals(other.getKindCase())) return false; + switch (kindCase_) { + case 1: + if (!getCertificateAuthorityServiceConfig() + .equals(other.getCertificateAuthorityServiceConfig())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (kindCase_) { + case 1: + hash = (37 * hash) + CERTIFICATE_AUTHORITY_SERVICE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCertificateAuthorityServiceConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig 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.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig 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.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * The CA that issues the workload certificate. It includes CA address, type,
+     * authentication to CA service, etc.
+     * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig) + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.class, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.Builder.class); + } + + // Construct using com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (certificateAuthorityServiceConfigBuilder_ != null) { + certificateAuthorityServiceConfigBuilder_.clear(); + } + kindCase_ = 0; + kind_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig build() { + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig buildPartial() { + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig result = new com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig(this); + if (kindCase_ == 1) { + if (certificateAuthorityServiceConfigBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = certificateAuthorityServiceConfigBuilder_.build(); + } + } + result.kindCase_ = kindCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig) { + return mergeFrom((com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig other) { + if (other == com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.getDefaultInstance()) return this; + switch (other.getKindCase()) { + case CERTIFICATE_AUTHORITY_SERVICE_CONFIG: { + mergeCertificateAuthorityServiceConfig(other.getCertificateAuthorityServiceConfig()); + break; + } + case KIND_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getCertificateAuthorityServiceConfigFieldBuilder().getBuilder(), + extensionRegistry); + kindCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int kindCase_ = 0; + private java.lang.Object kind_; + public KindCase + getKindCase() { + return KindCase.forNumber( + kindCase_); + } + + public Builder clearKind() { + kindCase_ = 0; + kind_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig.Builder, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfigOrBuilder> certificateAuthorityServiceConfigBuilder_; + /** + *
+       * Defines a CertificateAuthorityServiceConfig.
+       * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + * @return Whether the certificateAuthorityServiceConfig field is set. + */ + @java.lang.Override + public boolean hasCertificateAuthorityServiceConfig() { + return kindCase_ == 1; + } + /** + *
+       * Defines a CertificateAuthorityServiceConfig.
+       * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + * @return The certificateAuthorityServiceConfig. + */ + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig getCertificateAuthorityServiceConfig() { + if (certificateAuthorityServiceConfigBuilder_ == null) { + if (kindCase_ == 1) { + return (com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig) kind_; + } + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig.getDefaultInstance(); + } else { + if (kindCase_ == 1) { + return certificateAuthorityServiceConfigBuilder_.getMessage(); + } + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig.getDefaultInstance(); + } + } + /** + *
+       * Defines a CertificateAuthorityServiceConfig.
+       * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + */ + public Builder setCertificateAuthorityServiceConfig(com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig value) { + if (certificateAuthorityServiceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + certificateAuthorityServiceConfigBuilder_.setMessage(value); + } + kindCase_ = 1; + return this; + } + /** + *
+       * Defines a CertificateAuthorityServiceConfig.
+       * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + */ + public Builder setCertificateAuthorityServiceConfig( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig.Builder builderForValue) { + if (certificateAuthorityServiceConfigBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + certificateAuthorityServiceConfigBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 1; + return this; + } + /** + *
+       * Defines a CertificateAuthorityServiceConfig.
+       * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + */ + public Builder mergeCertificateAuthorityServiceConfig(com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig value) { + if (certificateAuthorityServiceConfigBuilder_ == null) { + if (kindCase_ == 1 && + kind_ != com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig.getDefaultInstance()) { + kind_ = com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig.newBuilder((com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 1) { + certificateAuthorityServiceConfigBuilder_.mergeFrom(value); + } else { + certificateAuthorityServiceConfigBuilder_.setMessage(value); + } + } + kindCase_ = 1; + return this; + } + /** + *
+       * Defines a CertificateAuthorityServiceConfig.
+       * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + */ + public Builder clearCertificateAuthorityServiceConfig() { + if (certificateAuthorityServiceConfigBuilder_ == null) { + if (kindCase_ == 1) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 1) { + kindCase_ = 0; + kind_ = null; + } + certificateAuthorityServiceConfigBuilder_.clear(); + } + return this; + } + /** + *
+       * Defines a CertificateAuthorityServiceConfig.
+       * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig.Builder getCertificateAuthorityServiceConfigBuilder() { + return getCertificateAuthorityServiceConfigFieldBuilder().getBuilder(); + } + /** + *
+       * Defines a CertificateAuthorityServiceConfig.
+       * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + */ + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfigOrBuilder getCertificateAuthorityServiceConfigOrBuilder() { + if ((kindCase_ == 1) && (certificateAuthorityServiceConfigBuilder_ != null)) { + return certificateAuthorityServiceConfigBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 1) { + return (com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig) kind_; + } + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig.getDefaultInstance(); + } + } + /** + *
+       * Defines a CertificateAuthorityServiceConfig.
+       * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig certificate_authority_service_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig.Builder, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfigOrBuilder> + getCertificateAuthorityServiceConfigFieldBuilder() { + if (certificateAuthorityServiceConfigBuilder_ == null) { + if (!(kindCase_ == 1)) { + kind_ = com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig.getDefaultInstance(); + } + certificateAuthorityServiceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig.Builder, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfigOrBuilder>( + (com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.CertificateAuthorityServiceConfig) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 1; + onChanged();; + return certificateAuthorityServiceConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig) + private static final com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig(); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateAuthorityConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * A user-defined name of the certificate issuance config.
+   * CertificateIssuanceConfig names must be unique globally and match pattern
+   * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * A user-defined name of the certificate issuance config.
+   * CertificateIssuanceConfig names must be unique globally and match pattern
+   * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + *
+   * Output only. The creation timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + *
+   * Output only. The creation timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + *
+   * Output only. The creation timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + /** + *
+   * Output only. The last update timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + *
+   * Output only. The last update timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + *
+   * Output only. The last update timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int LABELS_FIELD_NUMBER = 4; + 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.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_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 labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * Set of labels associated with a CertificateIssuanceConfig.
+   * 
+ * + * map<string, string> labels = 4; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * Set of labels associated with a CertificateIssuanceConfig.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * Set of labels associated with a CertificateIssuanceConfig.
+   * 
+ * + * map<string, string> labels = 4; + */ + @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(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Set of labels associated with a CertificateIssuanceConfig.
+   * 
+ * + * map<string, string> labels = 4; + */ + @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(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 5; + private volatile java.lang.Object description_; + /** + *
+   * One or more paragraphs of text description of a CertificateIssuanceConfig.
+   * 
+ * + * string description = 5; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+   * One or more paragraphs of text description of a CertificateIssuanceConfig.
+   * 
+ * + * string description = 5; + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CERTIFICATE_AUTHORITY_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificateAuthorityConfig_; + /** + *
+   * Required. The CA that issues the workload certificate. It includes the CA
+   * address, type, authentication to CA service, etc.
+   * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the certificateAuthorityConfig field is set. + */ + @java.lang.Override + public boolean hasCertificateAuthorityConfig() { + return certificateAuthorityConfig_ != null; + } + /** + *
+   * Required. The CA that issues the workload certificate. It includes the CA
+   * address, type, authentication to CA service, etc.
+   * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return The certificateAuthorityConfig. + */ + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig getCertificateAuthorityConfig() { + return certificateAuthorityConfig_ == null ? com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.getDefaultInstance() : certificateAuthorityConfig_; + } + /** + *
+   * Required. The CA that issues the workload certificate. It includes the CA
+   * address, type, authentication to CA service, etc.
+   * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfigOrBuilder getCertificateAuthorityConfigOrBuilder() { + return getCertificateAuthorityConfig(); + } + + public static final int LIFETIME_FIELD_NUMBER = 7; + private com.google.protobuf.Duration lifetime_; + /** + *
+   * Required. Workload certificate lifetime requested.
+   * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the lifetime field is set. + */ + @java.lang.Override + public boolean hasLifetime() { + return lifetime_ != null; + } + /** + *
+   * Required. Workload certificate lifetime requested.
+   * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + * @return The lifetime. + */ + @java.lang.Override + public com.google.protobuf.Duration getLifetime() { + return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; + } + /** + *
+   * Required. Workload certificate lifetime requested.
+   * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder() { + return getLifetime(); + } + + public static final int ROTATION_WINDOW_PERCENTAGE_FIELD_NUMBER = 8; + private int rotationWindowPercentage_; + /** + *
+   * Required. Specifies the percentage of elapsed time of the certificate
+   * lifetime to wait before renewing the certificate. Must be a number between
+   * 1-99, inclusive.
+   * 
+ * + * int32 rotation_window_percentage = 8 [(.google.api.field_behavior) = REQUIRED]; + * @return The rotationWindowPercentage. + */ + @java.lang.Override + public int getRotationWindowPercentage() { + return rotationWindowPercentage_; + } + + public static final int KEY_ALGORITHM_FIELD_NUMBER = 9; + private int keyAlgorithm_; + /** + *
+   * Required. The key algorithm to use when generating the private key.
+   * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm key_algorithm = 9 [(.google.api.field_behavior) = REQUIRED]; + * @return The enum numeric value on the wire for keyAlgorithm. + */ + @java.lang.Override public int getKeyAlgorithmValue() { + return keyAlgorithm_; + } + /** + *
+   * Required. The key algorithm to use when generating the private key.
+   * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm key_algorithm = 9 [(.google.api.field_behavior) = REQUIRED]; + * @return The keyAlgorithm. + */ + @java.lang.Override public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm getKeyAlgorithm() { + @SuppressWarnings("deprecation") + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm result = com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm.valueOf(keyAlgorithm_); + return result == null ? com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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 (createTime_ != null) { + output.writeMessage(2, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); + } + if (certificateAuthorityConfig_ != null) { + output.writeMessage(6, getCertificateAuthorityConfig()); + } + if (lifetime_ != null) { + output.writeMessage(7, getLifetime()); + } + if (rotationWindowPercentage_ != 0) { + output.writeInt32(8, rotationWindowPercentage_); + } + if (keyAlgorithm_ != com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm.KEY_ALGORITHM_UNSPECIFIED.getNumber()) { + output.writeEnum(9, keyAlgorithm_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, 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(4, labels__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); + } + if (certificateAuthorityConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCertificateAuthorityConfig()); + } + if (lifetime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getLifetime()); + } + if (rotationWindowPercentage_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(8, rotationWindowPercentage_); + } + if (keyAlgorithm_ != com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm.KEY_ALGORITHM_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, keyAlgorithm_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig)) { + return super.equals(obj); + } + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig other = (com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (hasCertificateAuthorityConfig() != other.hasCertificateAuthorityConfig()) return false; + if (hasCertificateAuthorityConfig()) { + if (!getCertificateAuthorityConfig() + .equals(other.getCertificateAuthorityConfig())) return false; + } + if (hasLifetime() != other.hasLifetime()) return false; + if (hasLifetime()) { + if (!getLifetime() + .equals(other.getLifetime())) return false; + } + if (getRotationWindowPercentage() + != other.getRotationWindowPercentage()) return false; + if (keyAlgorithm_ != other.keyAlgorithm_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasCertificateAuthorityConfig()) { + hash = (37 * hash) + CERTIFICATE_AUTHORITY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCertificateAuthorityConfig().hashCode(); + } + if (hasLifetime()) { + hash = (37 * hash) + LIFETIME_FIELD_NUMBER; + hash = (53 * hash) + getLifetime().hashCode(); + } + hash = (37 * hash) + ROTATION_WINDOW_PERCENTAGE_FIELD_NUMBER; + hash = (53 * hash) + getRotationWindowPercentage(); + hash = (37 * hash) + KEY_ALGORITHM_FIELD_NUMBER; + hash = (53 * hash) + keyAlgorithm_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig 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.certificatemanager.v1.CertificateIssuanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig 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.certificatemanager.v1.CertificateIssuanceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CertificateIssuanceConfig specifies how to issue and manage a certificate.
+   * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.CertificateIssuanceConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.CertificateIssuanceConfig) + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.class, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder.class); + } + + // Construct using com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + description_ = ""; + + if (certificateAuthorityConfigBuilder_ == null) { + certificateAuthorityConfig_ = null; + } else { + certificateAuthorityConfig_ = null; + certificateAuthorityConfigBuilder_ = null; + } + if (lifetimeBuilder_ == null) { + lifetime_ = null; + } else { + lifetime_ = null; + lifetimeBuilder_ = null; + } + rotationWindowPercentage_ = 0; + + keyAlgorithm_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig build() { + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig buildPartial() { + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig result = new com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.description_ = description_; + if (certificateAuthorityConfigBuilder_ == null) { + result.certificateAuthorityConfig_ = certificateAuthorityConfig_; + } else { + result.certificateAuthorityConfig_ = certificateAuthorityConfigBuilder_.build(); + } + if (lifetimeBuilder_ == null) { + result.lifetime_ = lifetime_; + } else { + result.lifetime_ = lifetimeBuilder_.build(); + } + result.rotationWindowPercentage_ = rotationWindowPercentage_; + result.keyAlgorithm_ = keyAlgorithm_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig) { + return mergeFrom((com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig other) { + if (other == com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.hasCertificateAuthorityConfig()) { + mergeCertificateAuthorityConfig(other.getCertificateAuthorityConfig()); + } + if (other.hasLifetime()) { + mergeLifetime(other.getLifetime()); + } + if (other.getRotationWindowPercentage() != 0) { + setRotationWindowPercentage(other.getRotationWindowPercentage()); + } + if (other.keyAlgorithm_ != 0) { + setKeyAlgorithmValue(other.getKeyAlgorithmValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 34 + case 42: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + input.readMessage( + getCertificateAuthorityConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 50 + case 58: { + input.readMessage( + getLifetimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 58 + case 64: { + rotationWindowPercentage_ = input.readInt32(); + + break; + } // case 64 + case 72: { + keyAlgorithm_ = input.readEnum(); + + break; + } // case 72 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * A user-defined name of the certificate issuance config.
+     * CertificateIssuanceConfig names must be unique globally and match pattern
+     * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A user-defined name of the certificate issuance config.
+     * CertificateIssuanceConfig names must be unique globally and match pattern
+     * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A user-defined name of the certificate issuance config.
+     * CertificateIssuanceConfig names must be unique globally and match pattern
+     * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * A user-defined name of the certificate issuance config.
+     * CertificateIssuanceConfig names must be unique globally and match pattern
+     * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * A user-defined name of the certificate issuance config.
+     * CertificateIssuanceConfig names must be unique globally and match pattern
+     * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + 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_; + /** + *
+     * Output only. The creation timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + *
+     * Output only. The creation timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. The creation timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The creation timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The creation timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The creation timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The creation timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. The creation timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + } + /** + *
+     * Output only. The creation timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + 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()); + createTime_ = null; + } + return createTimeBuilder_; + } + + 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_; + /** + *
+     * Output only. The last update timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + *
+     * Output only. The last update timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. The last update timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The last update timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The last update timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.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(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The last update timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The last update timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. The last update timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + } + /** + *
+     * Output only. The last update timestamp of a CertificateIssuanceConfig.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + 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()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + 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 labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * Set of labels associated with a CertificateIssuanceConfig.
+     * 
+ * + * map<string, string> labels = 4; + */ + + @java.lang.Override + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * Set of labels associated with a CertificateIssuanceConfig.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * Set of labels associated with a CertificateIssuanceConfig.
+     * 
+ * + * map<string, string> labels = 4; + */ + @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(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Set of labels associated with a CertificateIssuanceConfig.
+     * 
+ * + * map<string, string> labels = 4; + */ + @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(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Set of labels associated with a CertificateIssuanceConfig.
+     * 
+ * + * map<string, string> labels = 4; + */ + + 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. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * Set of labels associated with a CertificateIssuanceConfig.
+     * 
+ * + * map<string, string> labels = 4; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Set of labels associated with a CertificateIssuanceConfig.
+     * 
+ * + * map<string, string> labels = 4; + */ + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + return this; + } + + private java.lang.Object description_ = ""; + /** + *
+     * One or more paragraphs of text description of a CertificateIssuanceConfig.
+     * 
+ * + * string description = 5; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * One or more paragraphs of text description of a CertificateIssuanceConfig.
+     * 
+ * + * string description = 5; + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * One or more paragraphs of text description of a CertificateIssuanceConfig.
+     * 
+ * + * string description = 5; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+     * One or more paragraphs of text description of a CertificateIssuanceConfig.
+     * 
+ * + * string description = 5; + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+     * One or more paragraphs of text description of a CertificateIssuanceConfig.
+     * 
+ * + * string description = 5; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificateAuthorityConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.Builder, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfigOrBuilder> certificateAuthorityConfigBuilder_; + /** + *
+     * Required. The CA that issues the workload certificate. It includes the CA
+     * address, type, authentication to CA service, etc.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the certificateAuthorityConfig field is set. + */ + public boolean hasCertificateAuthorityConfig() { + return certificateAuthorityConfigBuilder_ != null || certificateAuthorityConfig_ != null; + } + /** + *
+     * Required. The CA that issues the workload certificate. It includes the CA
+     * address, type, authentication to CA service, etc.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return The certificateAuthorityConfig. + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig getCertificateAuthorityConfig() { + if (certificateAuthorityConfigBuilder_ == null) { + return certificateAuthorityConfig_ == null ? com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.getDefaultInstance() : certificateAuthorityConfig_; + } else { + return certificateAuthorityConfigBuilder_.getMessage(); + } + } + /** + *
+     * Required. The CA that issues the workload certificate. It includes the CA
+     * address, type, authentication to CA service, etc.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setCertificateAuthorityConfig(com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig value) { + if (certificateAuthorityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + certificateAuthorityConfig_ = value; + onChanged(); + } else { + certificateAuthorityConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. The CA that issues the workload certificate. It includes the CA
+     * address, type, authentication to CA service, etc.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setCertificateAuthorityConfig( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.Builder builderForValue) { + if (certificateAuthorityConfigBuilder_ == null) { + certificateAuthorityConfig_ = builderForValue.build(); + onChanged(); + } else { + certificateAuthorityConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. The CA that issues the workload certificate. It includes the CA
+     * address, type, authentication to CA service, etc.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeCertificateAuthorityConfig(com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig value) { + if (certificateAuthorityConfigBuilder_ == null) { + if (certificateAuthorityConfig_ != null) { + certificateAuthorityConfig_ = + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.newBuilder(certificateAuthorityConfig_).mergeFrom(value).buildPartial(); + } else { + certificateAuthorityConfig_ = value; + } + onChanged(); + } else { + certificateAuthorityConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. The CA that issues the workload certificate. It includes the CA
+     * address, type, authentication to CA service, etc.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearCertificateAuthorityConfig() { + if (certificateAuthorityConfigBuilder_ == null) { + certificateAuthorityConfig_ = null; + onChanged(); + } else { + certificateAuthorityConfig_ = null; + certificateAuthorityConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. The CA that issues the workload certificate. It includes the CA
+     * address, type, authentication to CA service, etc.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.Builder getCertificateAuthorityConfigBuilder() { + + onChanged(); + return getCertificateAuthorityConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The CA that issues the workload certificate. It includes the CA
+     * address, type, authentication to CA service, etc.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfigOrBuilder getCertificateAuthorityConfigOrBuilder() { + if (certificateAuthorityConfigBuilder_ != null) { + return certificateAuthorityConfigBuilder_.getMessageOrBuilder(); + } else { + return certificateAuthorityConfig_ == null ? + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.getDefaultInstance() : certificateAuthorityConfig_; + } + } + /** + *
+     * Required. The CA that issues the workload certificate. It includes the CA
+     * address, type, authentication to CA service, etc.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.Builder, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfigOrBuilder> + getCertificateAuthorityConfigFieldBuilder() { + if (certificateAuthorityConfigBuilder_ == null) { + certificateAuthorityConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig.Builder, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfigOrBuilder>( + getCertificateAuthorityConfig(), + getParentForChildren(), + isClean()); + certificateAuthorityConfig_ = null; + } + return certificateAuthorityConfigBuilder_; + } + + 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_; + /** + *
+     * Required. Workload certificate lifetime requested.
+     * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the lifetime field is set. + */ + public boolean hasLifetime() { + return lifetimeBuilder_ != null || lifetime_ != null; + } + /** + *
+     * Required. Workload certificate lifetime requested.
+     * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + * @return The lifetime. + */ + public com.google.protobuf.Duration getLifetime() { + if (lifetimeBuilder_ == null) { + return lifetime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : lifetime_; + } else { + return lifetimeBuilder_.getMessage(); + } + } + /** + *
+     * Required. Workload certificate lifetime requested.
+     * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setLifetime(com.google.protobuf.Duration value) { + if (lifetimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lifetime_ = value; + onChanged(); + } else { + lifetimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. Workload certificate lifetime requested.
+     * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setLifetime( + com.google.protobuf.Duration.Builder builderForValue) { + if (lifetimeBuilder_ == null) { + lifetime_ = builderForValue.build(); + onChanged(); + } else { + lifetimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. Workload certificate lifetime requested.
+     * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.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(); + } else { + lifetime_ = value; + } + onChanged(); + } else { + lifetimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. Workload certificate lifetime requested.
+     * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearLifetime() { + if (lifetimeBuilder_ == null) { + lifetime_ = null; + onChanged(); + } else { + lifetime_ = null; + lifetimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. Workload certificate lifetime requested.
+     * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.Duration.Builder getLifetimeBuilder() { + + onChanged(); + return getLifetimeFieldBuilder().getBuilder(); + } + /** + *
+     * Required. Workload certificate lifetime requested.
+     * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.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_; + } + } + /** + *
+     * Required. Workload certificate lifetime requested.
+     * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + lifetime_ = null; + } + return lifetimeBuilder_; + } + + private int rotationWindowPercentage_ ; + /** + *
+     * Required. Specifies the percentage of elapsed time of the certificate
+     * lifetime to wait before renewing the certificate. Must be a number between
+     * 1-99, inclusive.
+     * 
+ * + * int32 rotation_window_percentage = 8 [(.google.api.field_behavior) = REQUIRED]; + * @return The rotationWindowPercentage. + */ + @java.lang.Override + public int getRotationWindowPercentage() { + return rotationWindowPercentage_; + } + /** + *
+     * Required. Specifies the percentage of elapsed time of the certificate
+     * lifetime to wait before renewing the certificate. Must be a number between
+     * 1-99, inclusive.
+     * 
+ * + * int32 rotation_window_percentage = 8 [(.google.api.field_behavior) = REQUIRED]; + * @param value The rotationWindowPercentage to set. + * @return This builder for chaining. + */ + public Builder setRotationWindowPercentage(int value) { + + rotationWindowPercentage_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. Specifies the percentage of elapsed time of the certificate
+     * lifetime to wait before renewing the certificate. Must be a number between
+     * 1-99, inclusive.
+     * 
+ * + * int32 rotation_window_percentage = 8 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearRotationWindowPercentage() { + + rotationWindowPercentage_ = 0; + onChanged(); + return this; + } + + private int keyAlgorithm_ = 0; + /** + *
+     * Required. The key algorithm to use when generating the private key.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm key_algorithm = 9 [(.google.api.field_behavior) = REQUIRED]; + * @return The enum numeric value on the wire for keyAlgorithm. + */ + @java.lang.Override public int getKeyAlgorithmValue() { + return keyAlgorithm_; + } + /** + *
+     * Required. The key algorithm to use when generating the private key.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm key_algorithm = 9 [(.google.api.field_behavior) = REQUIRED]; + * @param value The enum numeric value on the wire for keyAlgorithm to set. + * @return This builder for chaining. + */ + public Builder setKeyAlgorithmValue(int value) { + + keyAlgorithm_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The key algorithm to use when generating the private key.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm key_algorithm = 9 [(.google.api.field_behavior) = REQUIRED]; + * @return The keyAlgorithm. + */ + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm getKeyAlgorithm() { + @SuppressWarnings("deprecation") + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm result = com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm.valueOf(keyAlgorithm_); + return result == null ? com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm.UNRECOGNIZED : result; + } + /** + *
+     * Required. The key algorithm to use when generating the private key.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm key_algorithm = 9 [(.google.api.field_behavior) = REQUIRED]; + * @param value The keyAlgorithm to set. + * @return This builder for chaining. + */ + public Builder setKeyAlgorithm(com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm value) { + if (value == null) { + throw new NullPointerException(); + } + + keyAlgorithm_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Required. The key algorithm to use when generating the private key.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm key_algorithm = 9 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearKeyAlgorithm() { + + keyAlgorithm_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.CertificateIssuanceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.CertificateIssuanceConfig) + private static final com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig(); + } + + public static com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateIssuanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigName.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigName.java new file mode 100644 index 000000000000..7d5c524c23f2 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigName.java @@ -0,0 +1,240 @@ +/* + * 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.certificatemanager.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class CertificateIssuanceConfigName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_CERTIFICATE_ISSUANCE_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/certificateIssuanceConfigs/{certificate_issuance_config}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String certificateIssuanceConfig; + + @Deprecated + protected CertificateIssuanceConfigName() { + project = null; + location = null; + certificateIssuanceConfig = null; + } + + private CertificateIssuanceConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + certificateIssuanceConfig = Preconditions.checkNotNull(builder.getCertificateIssuanceConfig()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCertificateIssuanceConfig() { + return certificateIssuanceConfig; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CertificateIssuanceConfigName of( + String project, String location, String certificateIssuanceConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCertificateIssuanceConfig(certificateIssuanceConfig) + .build(); + } + + public static String format(String project, String location, String certificateIssuanceConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCertificateIssuanceConfig(certificateIssuanceConfig) + .build() + .toString(); + } + + public static CertificateIssuanceConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_CERTIFICATE_ISSUANCE_CONFIG.validatedMatch( + formattedString, + "CertificateIssuanceConfigName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("certificate_issuance_config")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (CertificateIssuanceConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_CERTIFICATE_ISSUANCE_CONFIG.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (certificateIssuanceConfig != null) { + fieldMapBuilder.put("certificate_issuance_config", certificateIssuanceConfig); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_CERTIFICATE_ISSUANCE_CONFIG.instantiate( + "project", + project, + "location", + location, + "certificate_issuance_config", + certificateIssuanceConfig); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + CertificateIssuanceConfigName that = ((CertificateIssuanceConfigName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.certificateIssuanceConfig, that.certificateIssuanceConfig); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(certificateIssuanceConfig); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/certificateIssuanceConfigs/{certificate_issuance_config}. + */ + public static class Builder { + private String project; + private String location; + private String certificateIssuanceConfig; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCertificateIssuanceConfig() { + return certificateIssuanceConfig; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCertificateIssuanceConfig(String certificateIssuanceConfig) { + this.certificateIssuanceConfig = certificateIssuanceConfig; + return this; + } + + private Builder(CertificateIssuanceConfigName certificateIssuanceConfigName) { + this.project = certificateIssuanceConfigName.project; + this.location = certificateIssuanceConfigName.location; + this.certificateIssuanceConfig = certificateIssuanceConfigName.certificateIssuanceConfig; + } + + public CertificateIssuanceConfigName build() { + return new CertificateIssuanceConfigName(this); + } + } +} diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigOrBuilder.java new file mode 100644 index 000000000000..ac84c9c6077c --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigOrBuilder.java @@ -0,0 +1,251 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +public interface CertificateIssuanceConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.CertificateIssuanceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A user-defined name of the certificate issuance config.
+   * CertificateIssuanceConfig names must be unique globally and match pattern
+   * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * A user-defined name of the certificate issuance config.
+   * CertificateIssuanceConfig names must be unique globally and match pattern
+   * `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Output only. The creation timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+   * Output only. The creation timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + *
+   * Output only. The creation timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * Output only. The last update timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + *
+   * Output only. The last update timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + *
+   * Output only. The last update timestamp of a CertificateIssuanceConfig.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + *
+   * Set of labels associated with a CertificateIssuanceConfig.
+   * 
+ * + * map<string, string> labels = 4; + */ + int getLabelsCount(); + /** + *
+   * Set of labels associated with a CertificateIssuanceConfig.
+   * 
+ * + * map<string, string> labels = 4; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * Set of labels associated with a CertificateIssuanceConfig.
+   * 
+ * + * map<string, string> labels = 4; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * Set of labels associated with a CertificateIssuanceConfig.
+   * 
+ * + * map<string, string> labels = 4; + */ + + /* nullable */ +java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+   * Set of labels associated with a CertificateIssuanceConfig.
+   * 
+ * + * map<string, string> labels = 4; + */ + + java.lang.String getLabelsOrThrow( + java.lang.String key); + + /** + *
+   * One or more paragraphs of text description of a CertificateIssuanceConfig.
+   * 
+ * + * string description = 5; + * @return The description. + */ + java.lang.String getDescription(); + /** + *
+   * One or more paragraphs of text description of a CertificateIssuanceConfig.
+   * 
+ * + * string description = 5; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + *
+   * Required. The CA that issues the workload certificate. It includes the CA
+   * address, type, authentication to CA service, etc.
+   * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the certificateAuthorityConfig field is set. + */ + boolean hasCertificateAuthorityConfig(); + /** + *
+   * Required. The CA that issues the workload certificate. It includes the CA
+   * address, type, authentication to CA service, etc.
+   * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return The certificateAuthorityConfig. + */ + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig getCertificateAuthorityConfig(); + /** + *
+   * Required. The CA that issues the workload certificate. It includes the CA
+   * address, type, authentication to CA service, etc.
+   * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfig certificate_authority_config = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.CertificateAuthorityConfigOrBuilder getCertificateAuthorityConfigOrBuilder(); + + /** + *
+   * Required. Workload certificate lifetime requested.
+   * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the lifetime field is set. + */ + boolean hasLifetime(); + /** + *
+   * Required. Workload certificate lifetime requested.
+   * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + * @return The lifetime. + */ + com.google.protobuf.Duration getLifetime(); + /** + *
+   * Required. Workload certificate lifetime requested.
+   * 
+ * + * .google.protobuf.Duration lifetime = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.protobuf.DurationOrBuilder getLifetimeOrBuilder(); + + /** + *
+   * Required. Specifies the percentage of elapsed time of the certificate
+   * lifetime to wait before renewing the certificate. Must be a number between
+   * 1-99, inclusive.
+   * 
+ * + * int32 rotation_window_percentage = 8 [(.google.api.field_behavior) = REQUIRED]; + * @return The rotationWindowPercentage. + */ + int getRotationWindowPercentage(); + + /** + *
+   * Required. The key algorithm to use when generating the private key.
+   * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm key_algorithm = 9 [(.google.api.field_behavior) = REQUIRED]; + * @return The enum numeric value on the wire for keyAlgorithm. + */ + int getKeyAlgorithmValue(); + /** + *
+   * Required. The key algorithm to use when generating the private key.
+   * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm key_algorithm = 9 [(.google.api.field_behavior) = REQUIRED]; + * @return The keyAlgorithm. + */ + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.KeyAlgorithm getKeyAlgorithm(); +} diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigProto.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigProto.java new file mode 100644 index 000000000000..7ddca88aa15b --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateIssuanceConfigProto.java @@ -0,0 +1,216 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +public final class CertificateIssuanceConfigProto { + private CertificateIssuanceConfigProto() {} + 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_certificatemanager_v1_ListCertificateIssuanceConfigsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_GetCertificateIssuanceConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_GetCertificateIssuanceConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_CreateCertificateIssuanceConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_CreateCertificateIssuanceConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateIssuanceConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateIssuanceConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_CertificateAuthorityServiceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_CertificateAuthorityServiceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_LabelsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nDgoogle/cloud/certificatemanager/v1/cer" + + "tificate_issuance_config.proto\022\"google.c" + + "loud.certificatemanager.v1\032\037google/api/f" + + "ield_behavior.proto\032\031google/api/resource" + + ".proto\032\036google/protobuf/duration.proto\032\037" + + "google/protobuf/timestamp.proto\"\253\001\n%List" + + "CertificateIssuanceConfigsRequest\0229\n\006par" + + "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." + + "com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030" + + "\005 \001(\t\"\273\001\n&ListCertificateIssuanceConfigs" + + "Response\022c\n\034certificate_issuance_configs" + + "\030\001 \003(\0132=.google.cloud.certificatemanager" + + ".v1.CertificateIssuanceConfig\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"x\n#G" + + "etCertificateIssuanceConfigRequest\022Q\n\004na" + + "me\030\001 \001(\tBC\340A\002\372A=\n;certificatemanager.goo" + + "gleapis.com/CertificateIssuanceConfig\"\371\001" + + "\n&CreateCertificateIssuanceConfigRequest" + + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" + + "leapis.com/Location\022+\n\036certificate_issua" + + "nce_config_id\030\002 \001(\tB\003\340A\002\022g\n\033certificate_" + + "issuance_config\030\003 \001(\0132=.google.cloud.cer" + + "tificatemanager.v1.CertificateIssuanceCo" + + "nfigB\003\340A\002\"{\n&DeleteCertificateIssuanceCo" + + "nfigRequest\022Q\n\004name\030\001 \001(\tBC\340A\002\372A=\n;certi" + + "ficatemanager.googleapis.com/Certificate" + + "IssuanceConfig\"\243\t\n\031CertificateIssuanceCo" + + "nfig\022\014\n\004name\030\001 \001(\t\0224\n\013create_time\030\002 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upda" + + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\022Y\n\006labels\030\004 \003(\0132I.google.cloud.ce" + + "rtificatemanager.v1.CertificateIssuanceC" + + "onfig.LabelsEntry\022\023\n\013description\030\005 \001(\t\022\203" + + "\001\n\034certificate_authority_config\030\006 \001(\0132X." + + "google.cloud.certificatemanager.v1.Certi" + + "ficateIssuanceConfig.CertificateAuthorit" + + "yConfigB\003\340A\002\0220\n\010lifetime\030\007 \001(\0132\031.google." + + "protobuf.DurationB\003\340A\002\022\'\n\032rotation_windo" + + "w_percentage\030\010 \001(\005B\003\340A\002\022f\n\rkey_algorithm" + + "\030\t \001(\0162J.google.cloud.certificatemanager" + + ".v1.CertificateIssuanceConfig.KeyAlgorit" + + "hmB\003\340A\002\032\260\002\n\032CertificateAuthorityConfig\022\252" + + "\001\n$certificate_authority_service_config\030" + + "\001 \001(\0132z.google.cloud.certificatemanager." + + "v1.CertificateIssuanceConfig.Certificate" + + "AuthorityConfig.CertificateAuthorityServ" + + "iceConfigH\000\032]\n!CertificateAuthorityServi" + + "ceConfig\0228\n\007ca_pool\030\001 \001(\tB\'\340A\002\372A!\n\037priva" + + "teca.googleapis.com/CaPoolB\006\n\004kind\032-\n\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"K\n\014KeyAlgorithm\022\035\n\031KEY_ALGORITHM_UNSPE" + + "CIFIED\020\000\022\014\n\010RSA_2048\020\001\022\016\n\nECDSA_P256\020\004:\243" + + "\001\352A\237\001\n;certificatemanager.googleapis.com" + + "/CertificateIssuanceConfig\022`projects/{pr" + + "oject}/locations/{location}/certificateI" + + "ssuanceConfigs/{certificate_issuance_con" + + "fig}B\361\002\n&com.google.cloud.certificateman" + + "ager.v1B\036CertificateIssuanceConfigProtoP" + + "\001ZTgoogle.golang.org/genproto/googleapis" + + "/cloud/certificatemanager/v1;certificate" + + "manager\252\002\"Google.Cloud.CertificateManage" + + "r.V1\312\002\"Google\\Cloud\\CertificateManager\\V" + + "1\352\002%Google::Cloud::CertificateManager::V" + + "1\352A\\\n\037privateca.googleapis.com/CaPool\0229p" + + "rojects/{project}/locations/{location}/c" + + "aPools/{ca_pool}b\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(), + }); + internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsResponse_descriptor, + new java.lang.String[] { "CertificateIssuanceConfigs", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_certificatemanager_v1_GetCertificateIssuanceConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_certificatemanager_v1_GetCertificateIssuanceConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_GetCertificateIssuanceConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_certificatemanager_v1_CreateCertificateIssuanceConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_certificatemanager_v1_CreateCertificateIssuanceConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_CreateCertificateIssuanceConfigRequest_descriptor, + new java.lang.String[] { "Parent", "CertificateIssuanceConfigId", "CertificateIssuanceConfig", }); + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateIssuanceConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateIssuanceConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateIssuanceConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_descriptor, + new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "Description", "CertificateAuthorityConfig", "Lifetime", "RotationWindowPercentage", "KeyAlgorithm", }); + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_descriptor = + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_descriptor, + new java.lang.String[] { "CertificateAuthorityServiceConfig", "Kind", }); + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_CertificateAuthorityServiceConfig_descriptor = + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_CertificateAuthorityServiceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_CertificateAuthorityConfig_CertificateAuthorityServiceConfig_descriptor, + new java.lang.String[] { "CaPool", }); + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_LabelsEntry_descriptor = + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_CertificateIssuanceConfig_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + 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(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerProto.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerProto.java new file mode 100644 index 000000000000..9a80226f551a --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerProto.java @@ -0,0 +1,889 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/certificatemanager/v1/certificate_manager.proto + +package com.google.cloud.certificatemanager.v1; + +public final class CertificateManagerProto { + private CertificateManagerProto() {} + 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_certificatemanager_v1_ListCertificatesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_ListCertificatesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_ListCertificatesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_ListCertificatesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_GetCertificateRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_GetCertificateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_CreateCertificateRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_CreateCertificateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_UpdateCertificateRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_UpdateCertificateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_GetCertificateMapRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_GetCertificateMapRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_GetCertificateMapEntryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_GetCertificateMapEntryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapEntryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapEntryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapEntryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapEntryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapEntryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapEntryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_GetDnsAuthorizationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_GetDnsAuthorizationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_CreateDnsAuthorizationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_CreateDnsAuthorizationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_UpdateDnsAuthorizationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_UpdateDnsAuthorizationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_DeleteDnsAuthorizationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_DeleteDnsAuthorizationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_Certificate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_Certificate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_Certificate_SelfManagedCertificate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_Certificate_SelfManagedCertificate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_ProvisioningIssue_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_ProvisioningIssue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_AuthorizationAttemptInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_AuthorizationAttemptInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_Certificate_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_Certificate_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_CertificateMap_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_CertificateMap_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_IpConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_IpConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_CertificateMap_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_CertificateMap_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_DnsResourceRecord_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_DnsResourceRecord_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_LabelsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n.google.cloud.ce" + + "rtificatemanager.v1.CertificateMap.Label" + + "sEntry\022X\n\014gclb_targets\030\004 \003(\0132=.google.cl" + + "oud.certificatemanager.v1.CertificateMap" + + ".GclbTargetB\003\340A\003\032\372\001\n\nGclbTarget\022!\n\022targe" + + "t_https_proxy\030\001 \001(\tB\003\340A\003H\000\022\037\n\020target_ssl" + + "_proxy\030\003 \001(\tB\003\340A\003H\000\022_\n\nip_configs\030\002 \003(\0132" + + "F.google.cloud.certificatemanager.v1.Cer" + + "tificateMap.GclbTarget.IpConfigB\003\340A\003\0327\n\010" + + "IpConfig\022\027\n\nip_address\030\001 \001(\tB\003\340A\003\022\022\n\005por" + + "ts\030\003 \003(\rB\003\340A\003B\016\n\014target_proxy\032-\n\013LabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\200\001\352" + + "A}\n0certificatemanager.googleapis.com/Ce" + + "rtificateMap\022Iprojects/{project}/locatio" + + "ns/{location}/certificateMaps/{certifica" + + "te_map}\"\221\006\n\023CertificateMapEntry\022\014\n\004name\030" + + "\001 \001(\t\022\023\n\013description\030\t \001(\t\0224\n\013create_tim" + + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0224\n\013update_time\030\003 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022S\n\006labels\030\004 \003(\0132C.google." + + "cloud.certificatemanager.v1.CertificateM" + + "apEntry.LabelsEntry\022\022\n\010hostname\030\005 \001(\tH\000\022" + + "R\n\007matcher\030\n \001(\0162?.google.cloud.certific" + + "atemanager.v1.CertificateMapEntry.Matche" + + "rH\000\022H\n\014certificates\030\007 \003(\tB2\372A/\n-certific" + + "atemanager.googleapis.com/Certificate\022D\n" + + "\005state\030\010 \001(\01620.google.cloud.certificatem" + + "anager.v1.ServingStateB\003\340A\003\032-\n\013LabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"/\n\007Ma" + + "tcher\022\027\n\023MATCHER_UNSPECIFIED\020\000\022\013\n\007PRIMAR" + + "Y\020\001:\264\001\352A\260\001\n5certificatemanager.googleapi" + + "s.com/CertificateMapEntry\022wprojects/{pro" + + "ject}/locations/{location}/certificateMa" + + "ps/{certificate_map}/certificateMapEntri" + + "es/{certificate_map_entry}B\007\n\005match\"\374\004\n\020" + + "DnsAuthorization\022\014\n\004name\030\001 \001(\t\0224\n\013create" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022P\n\006labels\030\004 \003(\0132@.goo" + + "gle.cloud.certificatemanager.v1.DnsAutho" + + "rization.LabelsEntry\022\023\n\013description\030\005 \001(" + + "\t\022\026\n\006domain\030\006 \001(\tB\006\340A\002\340A\005\022h\n\023dns_resourc" + + "e_record\030\n \001(\0132F.google.cloud.certificat" + + "emanager.v1.DnsAuthorization.DnsResource" + + "RecordB\003\340A\003\032L\n\021DnsResourceRecord\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\022\021\n\004type\030\002 \001(\tB\003\340A\003\022\021\n\004data\030\003" + + " \001(\tB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:\207\001\352A\203\001\n2certificatemana" + + "ger.googleapis.com/DnsAuthorization\022Mpro" + + "jects/{project}/locations/{location}/dns" + + "Authorizations/{dns_authorization}*F\n\014Se" + + "rvingState\022\035\n\031SERVING_STATE_UNSPECIFIED\020" + + "\000\022\n\n\006ACTIVE\020\001\022\013\n\007PENDING\020\0022\3261\n\022Certifica" + + "teManager\022\320\001\n\020ListCertificates\022;.google." + + "cloud.certificatemanager.v1.ListCertific" + + "atesRequest\032<.google.cloud.certificatema" + + "nager.v1.ListCertificatesResponse\"A\202\323\344\223\002" + + "2\0220/v1/{parent=projects/*/locations/*}/c" + + "ertificates\332A\006parent\022\275\001\n\016GetCertificate\022" + + "9.google.cloud.certificatemanager.v1.Get" + + "CertificateRequest\032/.google.cloud.certif" + + "icatemanager.v1.Certificate\"?\202\323\344\223\0022\0220/v1" + + "/{name=projects/*/locations/*/certificat" + + "es/*}\332A\004name\022\377\001\n\021CreateCertificate\022<.goo" + + "gle.cloud.certificatemanager.v1.CreateCe" + + "rtificateRequest\032\035.google.longrunning.Op" + + "eration\"\214\001\202\323\344\223\002?\"0/v1/{parent=projects/*" + + "/locations/*}/certificates:\013certificate\332" + + "A!parent,certificate,certificate_id\312A \n\013" + + "Certificate\022\021OperationMetadata\022\201\002\n\021Updat" + + "eCertificate\022<.google.cloud.certificatem" + + "anager.v1.UpdateCertificateRequest\032\035.goo" + + "gle.longrunning.Operation\"\216\001\202\323\344\223\002K2.google.cloud.certi" + + "ficatemanager.v1.ListCertificateMapsRequ" + + "est\032?.google.cloud.certificatemanager.v1" + + ".ListCertificateMapsResponse\"D\202\323\344\223\0025\0223/v" + + "1/{parent=projects/*/locations/*}/certif" + + "icateMaps\332A\006parent\022\311\001\n\021GetCertificateMap" + + "\022<.google.cloud.certificatemanager.v1.Ge" + + "tCertificateMapRequest\0322.google.cloud.ce" + + "rtificatemanager.v1.CertificateMap\"B\202\323\344\223" + + "\0025\0223/v1/{name=projects/*/locations/*/cer" + + "tificateMaps/*}\332A\004name\022\227\002\n\024CreateCertifi" + + "cateMap\022?.google.cloud.certificatemanage" + + "r.v1.CreateCertificateMapRequest\032\035.googl" + + "e.longrunning.Operation\"\236\001\202\323\344\223\002F\"3/v1/{p" + + "arent=projects/*/locations/*}/certificat" + + "eMaps:\017certificate_map\332A)parent,certific" + + "ate_map,certificate_map_id\312A#\n\016Certifica" + + "teMap\022\021OperationMetadata\022\231\002\n\024UpdateCerti" + + "ficateMap\022?.google.cloud.certificatemana" + + "ger.v1.UpdateCertificateMapRequest\032\035.goo" + + "gle.longrunning.Operation\"\240\001\202\323\344\223\002V2C/v1/" + + "{certificate_map.name=projects/*/locatio" + + "ns/*/certificateMaps/*}:\017certificate_map" + + "\332A\033certificate_map,update_mask\312A#\n\016Certi" + + "ficateMap\022\021OperationMetadata\022\347\001\n\024DeleteC" + + "ertificateMap\022?.google.cloud.certificate" + + "manager.v1.DeleteCertificateMapRequest\032\035" + + ".google.longrunning.Operation\"o\202\323\344\223\0025*3/" + + "v1/{name=projects/*/locations/*/certific" + + "ateMaps/*}\332A\004name\312A*\n\025google.protobuf.Em" + + "pty\022\021OperationMetadata\022\206\002\n\031ListCertifica" + + "teMapEntries\022D.google.cloud.certificatem" + + "anager.v1.ListCertificateMapEntriesReque" + + "st\032E.google.cloud.certificatemanager.v1." + + "ListCertificateMapEntriesResponse\"\\\202\323\344\223\002" + + "M\022K/v1/{parent=projects/*/locations/*/ce" + + "rtificateMaps/*}/certificateMapEntries\332A" + + "\006parent\022\360\001\n\026GetCertificateMapEntry\022A.goo" + + "gle.cloud.certificatemanager.v1.GetCerti" + + "ficateMapEntryRequest\0327.google.cloud.cer" + + "tificatemanager.v1.CertificateMapEntry\"Z" + + "\202\323\344\223\002M\022K/v1/{name=projects/*/locations/*" + + "/certificateMaps/*/certificateMapEntries" + + "/*}\332A\004name\022\320\002\n\031CreateCertificateMapEntry" + + "\022D.google.cloud.certificatemanager.v1.Cr" + + "eateCertificateMapEntryRequest\032\035.google." + + "longrunning.Operation\"\315\001\202\323\344\223\002d\"K/v1/{par" + + "ent=projects/*/locations/*/certificateMa" + + "ps/*}/certificateMapEntries:\025certificate" + + "_map_entry\332A5parent,certificate_map_entr" + + "y,certificate_map_entry_id\312A(\n\023Certifica" + + "teMapEntry\022\021OperationMetadata\022\322\002\n\031Update" + + "CertificateMapEntry\022D.google.cloud.certi" + + "ficatemanager.v1.UpdateCertificateMapEnt" + + "ryRequest\032\035.google.longrunning.Operation" + + "\"\317\001\202\323\344\223\002z2a/v1/{certificate_map_entry.na" + + "me=projects/*/locations/*/certificateMap" + + "s/*/certificateMapEntries/*}:\025certificat" + + "e_map_entry\332A!certificate_map_entry,upda" + + "te_mask\312A(\n\023CertificateMapEntry\022\021Operati" + + "onMetadata\022\212\002\n\031DeleteCertificateMapEntry" + + "\022D.google.cloud.certificatemanager.v1.De" + + "leteCertificateMapEntryRequest\032\035.google." + + "longrunning.Operation\"\207\001\202\323\344\223\002M*K/v1/{nam" + + "e=projects/*/locations/*/certificateMaps" + + "/*/certificateMapEntries/*}\332A\004name\312A*\n\025g" + + "oogle.protobuf.Empty\022\021OperationMetadata\022" + + "\344\001\n\025ListDnsAuthorizations\022@.google.cloud" + + ".certificatemanager.v1.ListDnsAuthorizat" + + "ionsRequest\032A.google.cloud.certificatema" + + "nager.v1.ListDnsAuthorizationsResponse\"F" + + "\202\323\344\223\0027\0225/v1/{parent=projects/*/locations" + + "/*}/dnsAuthorizations\332A\006parent\022\321\001\n\023GetDn" + + "sAuthorization\022>.google.cloud.certificat" + + "emanager.v1.GetDnsAuthorizationRequest\0324" + + ".google.cloud.certificatemanager.v1.DnsA" + + "uthorization\"D\202\323\344\223\0027\0225/v1/{name=projects" + + "/*/locations/*/dnsAuthorizations/*}\332A\004na" + + "me\022\245\002\n\026CreateDnsAuthorization\022A.google.c" + + "loud.certificatemanager.v1.CreateDnsAuth" + + "orizationRequest\032\035.google.longrunning.Op" + + "eration\"\250\001\202\323\344\223\002J\"5/v1/{parent=projects/*" + + "/locations/*}/dnsAuthorizations:\021dns_aut" + + "horization\332A-parent,dns_authorization,dn" + + "s_authorization_id\312A%\n\020DnsAuthorization\022" + + "\021OperationMetadata\022\247\002\n\026UpdateDnsAuthoriz" + + "ation\022A.google.cloud.certificatemanager." + + "v1.UpdateDnsAuthorizationRequest\032\035.googl" + + "e.longrunning.Operation\"\252\001\202\323\344\223\002\\2G/v1/{d" + + "ns_authorization.name=projects/*/locatio" + + "ns/*/dnsAuthorizations/*}:\021dns_authoriza" + + "tion\332A\035dns_authorization,update_mask\312A%\n" + + "\020DnsAuthorization\022\021OperationMetadata\022\355\001\n" + + "\026DeleteDnsAuthorization\022A.google.cloud.c" + + "ertificatemanager.v1.DeleteDnsAuthorizat" + + "ionRequest\032\035.google.longrunning.Operatio" + + "n\"q\202\323\344\223\0027*5/v1/{name=projects/*/location" + + "s/*/dnsAuthorizations/*}\332A\004name\312A*\n\025goog" + + "le.protobuf.Empty\022\021OperationMetadata\022\210\002\n" + + "\036ListCertificateIssuanceConfigs\022I.google" + + ".cloud.certificatemanager.v1.ListCertifi" + + "cateIssuanceConfigsRequest\032J.google.clou" + + "d.certificatemanager.v1.ListCertificateI" + + "ssuanceConfigsResponse\"O\202\323\344\223\002@\022>/v1/{par" + + "ent=projects/*/locations/*}/certificateI" + + "ssuanceConfigs\332A\006parent\022\365\001\n\034GetCertifica" + + "teIssuanceConfig\022G.google.cloud.certific" + + "atemanager.v1.GetCertificateIssuanceConf" + + "igRequest\032=.google.cloud.certificatemana" + + "ger.v1.CertificateIssuanceConfig\"M\202\323\344\223\002@" + + "\022>/v1/{name=projects/*/locations/*/certi" + + "ficateIssuanceConfigs/*}\332A\004name\022\347\002\n\037Crea" + + "teCertificateIssuanceConfig\022J.google.clo" + + "ud.certificatemanager.v1.CreateCertifica" + + "teIssuanceConfigRequest\032\035.google.longrun" + + "ning.Operation\"\330\001\202\323\344\223\002]\">/v1/{parent=pro" + + "jects/*/locations/*}/certificateIssuance" + + "Configs:\033certificate_issuance_config\332AAp" + + "arent,certificate_issuance_config,certif" + + "icate_issuance_config_id\312A.\n\031Certificate" + + "IssuanceConfig\022\021OperationMetadata\022\210\002\n\037De" + + "leteCertificateIssuanceConfig\022J.google.c" + + "loud.certificatemanager.v1.DeleteCertifi" + + "cateIssuanceConfigRequest\032\035.google.longr" + + "unning.Operation\"z\202\323\344\223\002@*>/v1/{name=proj" + + "ects/*/locations/*/certificateIssuanceCo" + + "nfigs/*}\332A\004name\312A*\n\025google.protobuf.Empt" + + "y\022\021OperationMetadata\032U\312A!certificatemana" + + "ger.googleapis.com\322A.https://www.googlea" + + "pis.com/auth/cloud-platformB\213\002\n&com.goog" + + "le.cloud.certificatemanager.v1B\027Certific" + + "ateManagerProtoP\001ZTgoogle.golang.org/gen" + + "proto/googleapis/cloud/certificatemanage" + + "r/v1;certificatemanager\252\002\"Google.Cloud.C" + + "ertificateManager.V1\312\002\"Google\\Cloud\\Cert" + + "ificateManager\\V1\352\002%Google::Cloud::Certi" + + "ficateManager::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.certificatemanager.v1.CertificateIssuanceConfigProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_certificatemanager_v1_ListCertificatesRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_certificatemanager_v1_ListCertificatesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_ListCertificatesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_certificatemanager_v1_ListCertificatesResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_certificatemanager_v1_ListCertificatesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_ListCertificatesResponse_descriptor, + new java.lang.String[] { "Certificates", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_certificatemanager_v1_GetCertificateRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_certificatemanager_v1_GetCertificateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_GetCertificateRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_certificatemanager_v1_CreateCertificateRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_certificatemanager_v1_CreateCertificateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_CreateCertificateRequest_descriptor, + new java.lang.String[] { "Parent", "CertificateId", "Certificate", }); + internal_static_google_cloud_certificatemanager_v1_UpdateCertificateRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_certificatemanager_v1_UpdateCertificateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_UpdateCertificateRequest_descriptor, + new java.lang.String[] { "Certificate", "UpdateMask", }); + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsResponse_descriptor, + new java.lang.String[] { "CertificateMaps", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_certificatemanager_v1_GetCertificateMapRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_certificatemanager_v1_GetCertificateMapRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_GetCertificateMapRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapRequest_descriptor, + new java.lang.String[] { "Parent", "CertificateMapId", "CertificateMap", }); + internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapRequest_descriptor, + new java.lang.String[] { "CertificateMap", "UpdateMask", }); + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesResponse_descriptor, + new java.lang.String[] { "CertificateMapEntries", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_certificatemanager_v1_GetCertificateMapEntryRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_certificatemanager_v1_GetCertificateMapEntryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_GetCertificateMapEntryRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapEntryRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapEntryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapEntryRequest_descriptor, + new java.lang.String[] { "Parent", "CertificateMapEntryId", "CertificateMapEntry", }); + internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapEntryRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapEntryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapEntryRequest_descriptor, + new java.lang.String[] { "CertificateMapEntry", "UpdateMask", }); + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapEntryRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapEntryRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapEntryRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsResponse_descriptor, + new java.lang.String[] { "DnsAuthorizations", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_certificatemanager_v1_GetDnsAuthorizationRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_certificatemanager_v1_GetDnsAuthorizationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_GetDnsAuthorizationRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_certificatemanager_v1_CreateDnsAuthorizationRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_certificatemanager_v1_CreateDnsAuthorizationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_CreateDnsAuthorizationRequest_descriptor, + new java.lang.String[] { "Parent", "DnsAuthorizationId", "DnsAuthorization", }); + internal_static_google_cloud_certificatemanager_v1_UpdateDnsAuthorizationRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_certificatemanager_v1_UpdateDnsAuthorizationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_UpdateDnsAuthorizationRequest_descriptor, + new java.lang.String[] { "DnsAuthorization", "UpdateMask", }); + internal_static_google_cloud_certificatemanager_v1_DeleteDnsAuthorizationRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_certificatemanager_v1_DeleteDnsAuthorizationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_DeleteDnsAuthorizationRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_certificatemanager_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_certificatemanager_v1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); + internal_static_google_cloud_certificatemanager_v1_Certificate_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_certificatemanager_v1_Certificate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_Certificate_descriptor, + new java.lang.String[] { "Name", "Description", "CreateTime", "UpdateTime", "Labels", "SelfManaged", "Managed", "SanDnsnames", "PemCertificate", "ExpireTime", "Scope", "Type", }); + internal_static_google_cloud_certificatemanager_v1_Certificate_SelfManagedCertificate_descriptor = + internal_static_google_cloud_certificatemanager_v1_Certificate_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_certificatemanager_v1_Certificate_SelfManagedCertificate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_Certificate_SelfManagedCertificate_descriptor, + new java.lang.String[] { "PemCertificate", "PemPrivateKey", }); + internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_descriptor = + internal_static_google_cloud_certificatemanager_v1_Certificate_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_descriptor, + new java.lang.String[] { "Domains", "DnsAuthorizations", "IssuanceConfig", "State", "ProvisioningIssue", "AuthorizationAttemptInfo", }); + internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_ProvisioningIssue_descriptor = + internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_ProvisioningIssue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_ProvisioningIssue_descriptor, + new java.lang.String[] { "Reason", "Details", }); + internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_AuthorizationAttemptInfo_descriptor = + internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_AuthorizationAttemptInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_Certificate_ManagedCertificate_AuthorizationAttemptInfo_descriptor, + new java.lang.String[] { "Domain", "State", "FailureReason", "Details", }); + internal_static_google_cloud_certificatemanager_v1_Certificate_LabelsEntry_descriptor = + internal_static_google_cloud_certificatemanager_v1_Certificate_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_certificatemanager_v1_Certificate_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_Certificate_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_certificatemanager_v1_CertificateMap_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_certificatemanager_v1_CertificateMap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_CertificateMap_descriptor, + new java.lang.String[] { "Name", "Description", "CreateTime", "UpdateTime", "Labels", "GclbTargets", }); + internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_descriptor = + internal_static_google_cloud_certificatemanager_v1_CertificateMap_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_descriptor, + new java.lang.String[] { "TargetHttpsProxy", "TargetSslProxy", "IpConfigs", "TargetProxy", }); + internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_IpConfig_descriptor = + internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_IpConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_IpConfig_descriptor, + new java.lang.String[] { "IpAddress", "Ports", }); + internal_static_google_cloud_certificatemanager_v1_CertificateMap_LabelsEntry_descriptor = + internal_static_google_cloud_certificatemanager_v1_CertificateMap_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_certificatemanager_v1_CertificateMap_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_CertificateMap_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_descriptor, + new java.lang.String[] { "Name", "Description", "CreateTime", "UpdateTime", "Labels", "Hostname", "Matcher", "Certificates", "State", "Match", }); + internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_LabelsEntry_descriptor = + internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_descriptor, + new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "Description", "Domain", "DnsResourceRecord", }); + internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_DnsResourceRecord_descriptor = + internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_DnsResourceRecord_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_DnsResourceRecord_descriptor, + new java.lang.String[] { "Name", "Type", "Data", }); + internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_LabelsEntry_descriptor = + internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.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/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMap.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMap.java similarity index 59% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMap.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMap.java index d73511098cbb..2db24b183a40 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMap.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMap.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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Defines a collection of certificate configurations.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.CertificateMap} */ -public final class CertificateMap extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CertificateMap extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.CertificateMap) CertificateMapOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CertificateMap.newBuilder() to construct. private CertificateMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CertificateMap() { name_ = ""; description_ = ""; @@ -45,524 +27,280 @@ private CertificateMap() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CertificateMap(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private CertificateMap( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - 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 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - gclbTargets_ = - new java.util.ArrayList< - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget>(); - mutable_bitField0_ |= 0x00000002; - } - gclbTargets_.add( - input.readMessage( - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.parser(), - extensionRegistry)); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 50: - { - 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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - gclbTargets_ = java.util.Collections.unmodifiableList(gclbTargets_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CertificateMap_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CertificateMap_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return 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.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CertificateMap_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CertificateMap_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.CertificateMap.class, - com.google.cloud.certificatemanager.v1.CertificateMap.Builder.class); + com.google.cloud.certificatemanager.v1.CertificateMap.class, com.google.cloud.certificatemanager.v1.CertificateMap.Builder.class); } - public interface GclbTargetOrBuilder - extends + public interface GclbTargetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.CertificateMap.GclbTarget) com.google.protobuf.MessageOrBuilder { /** - * - * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
      * 
* - * string target_https_proxy = 1; - * + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetHttpsProxy field is set. */ boolean hasTargetHttpsProxy(); /** - * - * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
      * 
* - * string target_https_proxy = 1; - * + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetHttpsProxy. */ java.lang.String getTargetHttpsProxy(); /** - * - * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
      * 
* - * string target_https_proxy = 1; - * + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for targetHttpsProxy. */ - com.google.protobuf.ByteString getTargetHttpsProxyBytes(); + com.google.protobuf.ByteString + getTargetHttpsProxyBytes(); /** - * - * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
      * 
* - * string target_ssl_proxy = 3; - * + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetSslProxy field is set. */ boolean hasTargetSslProxy(); /** - * - * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
      * 
* - * string target_ssl_proxy = 3; - * + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetSslProxy. */ java.lang.String getTargetSslProxy(); /** - * - * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
      * 
* - * string target_ssl_proxy = 3; - * + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for targetSslProxy. */ - com.google.protobuf.ByteString getTargetSslProxyBytes(); + com.google.protobuf.ByteString + getTargetSslProxyBytes(); /** - * - * *
-     * IP configurations for this Target Proxy where the
+     * Output only. IP configurations for this Target Proxy where the
      * Certificate Map is serving.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getIpConfigsList(); /** - * - * *
-     * IP configurations for this Target Proxy where the
+     * Output only. IP configurations for this Target Proxy where the
      * Certificate Map is serving.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig getIpConfigs( - int index); + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig getIpConfigs(int index); /** - * - * *
-     * IP configurations for this Target Proxy where the
+     * Output only. IP configurations for this Target Proxy where the
      * Certificate Map is serving.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getIpConfigsCount(); /** - * - * *
-     * IP configurations for this Target Proxy where the
+     * Output only. IP configurations for this Target Proxy where the
      * Certificate Map is serving.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List< - ? extends - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfigOrBuilder> + java.util.List getIpConfigsOrBuilderList(); /** - * - * *
-     * IP configurations for this Target Proxy where the
+     * Output only. IP configurations for this Target Proxy where the
      * Certificate Map is serving.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfigOrBuilder - getIpConfigsOrBuilder(int index); + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfigOrBuilder getIpConfigsOrBuilder( + int index); - public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.TargetProxyCase - getTargetProxyCase(); + public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.TargetProxyCase getTargetProxyCase(); } /** - * - * *
    * Describes a Target Proxy which uses this Certificate Map.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.CertificateMap.GclbTarget} */ - public static final class GclbTarget extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GclbTarget extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.CertificateMap.GclbTarget) GclbTargetOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GclbTarget.newBuilder() to construct. private GclbTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GclbTarget() { ipConfigs_ = 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 GclbTarget(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private GclbTarget( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - targetProxyCase_ = 1; - targetProxy_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - ipConfigs_ = - new java.util.ArrayList< - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget - .IpConfig>(); - mutable_bitField0_ |= 0x00000001; - } - ipConfigs_.add( - input.readMessage( - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig - .parser(), - extensionRegistry)); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - targetProxyCase_ = 3; - targetProxy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - ipConfigs_ = java.util.Collections.unmodifiableList(ipConfigs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.class, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.Builder.class); + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.class, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.Builder.class); } - public interface IpConfigOrBuilder - extends + public interface IpConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
-       * An external IP address.
+       * Output only. An external IP address.
        * 
* - * string ip_address = 1; - * + * string ip_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ipAddress. */ java.lang.String getIpAddress(); /** - * - * *
-       * An external IP address.
+       * Output only. An external IP address.
        * 
* - * string ip_address = 1; - * + * string ip_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for ipAddress. */ - com.google.protobuf.ByteString getIpAddressBytes(); + com.google.protobuf.ByteString + getIpAddressBytes(); /** - * - * *
-       * Ports.
+       * Output only. Ports.
        * 
* - * repeated uint32 ports = 3; - * + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the ports. */ java.util.List getPortsList(); /** - * - * *
-       * Ports.
+       * Output only. Ports.
        * 
* - * repeated uint32 ports = 3; - * + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of ports. */ int getPortsCount(); /** - * - * *
-       * Ports.
+       * Output only. Ports.
        * 
* - * repeated uint32 ports = 3; - * + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The ports at the given index. */ int getPorts(int index); } /** - * - * *
      * Defines IP configuration where this Certificate Map is serving.
      * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig} */ - public static final class IpConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class IpConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig) IpConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IpConfig.newBuilder() to construct. private IpConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IpConfig() { ipAddress_ = ""; ports_ = emptyIntList(); @@ -570,116 +308,37 @@ private IpConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IpConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private IpConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - ipAddress_ = s; - break; - } - case 24: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - ports_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - ports_.addInt(input.readUInt32()); - break; - } - case 26: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - ports_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - ports_.addInt(input.readUInt32()); - } - input.popLimit(limit); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - ports_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_IpConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_IpConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_IpConfig_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_IpConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.class, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder - .class); + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.class, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder.class); } public static final int IP_ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object ipAddress_; /** - * - * *
-       * An external IP address.
+       * Output only. An external IP address.
        * 
* - * string ip_address = 1; - * + * string ip_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ipAddress. */ @java.lang.Override @@ -688,29 +347,29 @@ public java.lang.String getIpAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; } } /** - * - * *
-       * An external IP address.
+       * Output only. An external IP address.
        * 
* - * string ip_address = 1; - * + * string ip_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for ipAddress. */ @java.lang.Override - public com.google.protobuf.ByteString getIpAddressBytes() { + public com.google.protobuf.ByteString + getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -721,54 +380,44 @@ public com.google.protobuf.ByteString getIpAddressBytes() { public static final int PORTS_FIELD_NUMBER = 3; private com.google.protobuf.Internal.IntList ports_; /** - * - * *
-       * Ports.
+       * Output only. Ports.
        * 
* - * repeated uint32 ports = 3; - * + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the ports. */ @java.lang.Override - public java.util.List getPortsList() { + public java.util.List + getPortsList() { return ports_; } /** - * - * *
-       * Ports.
+       * Output only. Ports.
        * 
* - * repeated uint32 ports = 3; - * + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of ports. */ public int getPortsCount() { return ports_.size(); } /** - * - * *
-       * Ports.
+       * Output only. Ports.
        * 
* - * repeated uint32 ports = 3; - * + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The ports at the given index. */ public int getPorts(int index) { return ports_.getInt(index); } - private int portsMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -780,7 +429,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ipAddress_); @@ -792,7 +442,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < ports_.size(); i++) { output.writeUInt32NoTag(ports_.getInt(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -807,17 +457,18 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < ports_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(ports_.getInt(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(ports_.getInt(i)); } size += dataSize; if (!getPortsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); } portsMemoizedSerializedSize = dataSize; } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -825,18 +476,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.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig)) { + if (!(obj instanceof com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig other = - (com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig) obj; + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig other = (com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig) obj; - if (!getIpAddress().equals(other.getIpAddress())) return false; - if (!getPortsList().equals(other.getPortsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getIpAddress() + .equals(other.getIpAddress())) return false; + if (!getPortsList() + .equals(other.getPortsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -853,108 +504,93 @@ public int hashCode() { hash = (37 * hash) + PORTS_FIELD_NUMBER; hash = (53 * hash) + getPortsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig 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.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig - 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.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig 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.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig - 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.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig 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.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -964,50 +600,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Defines IP configuration where this Certificate Map is serving.
        * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig) com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_IpConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_IpConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_IpConfig_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_IpConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.class, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder - .class); + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.class, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder.class); } - // Construct using - // com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.newBuilder() + // Construct using com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -1019,22 +644,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_IpConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_IpConfig_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig - getDefaultInstanceForType() { - return com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig - .getDefaultInstance(); + public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig build() { - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig result = - buildPartial(); + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1042,10 +664,8 @@ public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig } @java.lang.Override - public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig - buildPartial() { - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig result = - new com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig(this); + public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig buildPartial() { + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig result = new com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig(this); int from_bitField0_ = bitField0_; result.ipAddress_ = ipAddress_; if (((bitField0_ & 0x00000001) != 0)) { @@ -1061,55 +681,46 @@ public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig) { - return mergeFrom( - (com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig) other); + if (other instanceof com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig) { + return mergeFrom((com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig other) { - if (other - == com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig other) { + if (other == com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.getDefaultInstance()) return this; if (!other.getIpAddress().isEmpty()) { ipAddress_ = other.ipAddress_; onChanged(); @@ -1124,7 +735,7 @@ public Builder mergeFrom( } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1139,41 +750,69 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig parsedMessage = - null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + ipAddress_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 24: { + int v = input.readUInt32(); + ensurePortsIsMutable(); + ports_.addInt(v); + break; + } // case 24 + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensurePortsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + ports_.addInt(input.readUInt32()); + } + input.popLimit(limit); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.lang.Object ipAddress_ = ""; /** - * - * *
-         * An external IP address.
+         * Output only. An external IP address.
          * 
* - * string ip_address = 1; - * + * string ip_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The ipAddress. */ public java.lang.String getIpAddress() { java.lang.Object ref = ipAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ipAddress_ = s; return s; @@ -1182,21 +821,20 @@ public java.lang.String getIpAddress() { } } /** - * - * *
-         * An external IP address.
+         * Output only. An external IP address.
          * 
* - * string ip_address = 1; - * + * string ip_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for ipAddress. */ - public com.google.protobuf.ByteString getIpAddressBytes() { + public com.google.protobuf.ByteString + getIpAddressBytes() { java.lang.Object ref = ipAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); ipAddress_ = b; return b; } else { @@ -1204,113 +842,96 @@ public com.google.protobuf.ByteString getIpAddressBytes() { } } /** - * - * *
-         * An external IP address.
+         * Output only. An external IP address.
          * 
* - * string ip_address = 1; - * + * string ip_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddress(java.lang.String value) { + public Builder setIpAddress( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ipAddress_ = value; onChanged(); return this; } /** - * - * *
-         * An external IP address.
+         * Output only. An external IP address.
          * 
* - * string ip_address = 1; - * + * string ip_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearIpAddress() { - + ipAddress_ = getDefaultInstance().getIpAddress(); onChanged(); return this; } /** - * - * *
-         * An external IP address.
+         * Output only. An external IP address.
          * 
* - * string ip_address = 1; - * + * string ip_address = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for ipAddress to set. * @return This builder for chaining. */ - public Builder setIpAddressBytes(com.google.protobuf.ByteString value) { + public Builder setIpAddressBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ipAddress_ = value; onChanged(); return this; } private com.google.protobuf.Internal.IntList ports_ = emptyIntList(); - private void ensurePortsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { ports_ = mutableCopy(ports_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
-         * Ports.
+         * Output only. Ports.
          * 
* - * repeated uint32 ports = 3; - * + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the ports. */ - public java.util.List getPortsList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(ports_) - : ports_; + public java.util.List + getPortsList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(ports_) : ports_; } /** - * - * *
-         * Ports.
+         * Output only. Ports.
          * 
* - * repeated uint32 ports = 3; - * + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of ports. */ public int getPortsCount() { return ports_.size(); } /** - * - * *
-         * Ports.
+         * Output only. Ports.
          * 
* - * repeated uint32 ports = 3; - * + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The ports at the given index. */ @@ -1318,33 +939,28 @@ public int getPorts(int index) { return ports_.getInt(index); } /** - * - * *
-         * Ports.
+         * Output only. Ports.
          * 
* - * repeated uint32 ports = 3; - * + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index to set the value at. * @param value The ports to set. * @return This builder for chaining. */ - public Builder setPorts(int index, int value) { + public Builder setPorts( + int index, int value) { ensurePortsIsMutable(); ports_.setInt(index, value); onChanged(); return this; } /** - * - * *
-         * Ports.
+         * Output only. Ports.
          * 
* - * repeated uint32 ports = 3; - * + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The ports to add. * @return This builder for chaining. */ @@ -1355,32 +971,28 @@ public Builder addPorts(int value) { return this; } /** - * - * *
-         * Ports.
+         * Output only. Ports.
          * 
* - * repeated uint32 ports = 3; - * + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param values The ports to add. * @return This builder for chaining. */ - public Builder addAllPorts(java.lang.Iterable values) { + public Builder addAllPorts( + java.lang.Iterable values) { ensurePortsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ports_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ports_); onChanged(); return this; } /** - * - * *
-         * Ports.
+         * Output only. Ports.
          * 
* - * repeated uint32 ports = 3; - * + * repeated uint32 ports = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPorts() { @@ -1389,7 +1001,6 @@ public Builder clearPorts() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1402,33 +1013,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig) - private static final com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig(); + DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig(); } - public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IpConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IpConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IpConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1440,24 +1059,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int targetProxyCase_ = 0; private java.lang.Object targetProxy_; - public enum TargetProxyCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TARGET_HTTPS_PROXY(1), TARGET_SSL_PROXY(3), TARGETPROXY_NOT_SET(0); private final int value; - private TargetProxyCase(int value) { this.value = value; } @@ -1473,52 +1089,45 @@ public static TargetProxyCase valueOf(int value) { public static TargetProxyCase forNumber(int value) { switch (value) { - case 1: - return TARGET_HTTPS_PROXY; - case 3: - return TARGET_SSL_PROXY; - case 0: - return TARGETPROXY_NOT_SET; - default: - return null; + case 1: return TARGET_HTTPS_PROXY; + case 3: return TARGET_SSL_PROXY; + case 0: return TARGETPROXY_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public TargetProxyCase getTargetProxyCase() { - return TargetProxyCase.forNumber(targetProxyCase_); + public TargetProxyCase + getTargetProxyCase() { + return TargetProxyCase.forNumber( + targetProxyCase_); } public static final int TARGET_HTTPS_PROXY_FIELD_NUMBER = 1; /** - * - * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
      * 
* - * string target_https_proxy = 1; - * + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetHttpsProxy field is set. */ public boolean hasTargetHttpsProxy() { return targetProxyCase_ == 1; } /** - * - * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
      * 
* - * string target_https_proxy = 1; - * + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetHttpsProxy. */ public java.lang.String getTargetHttpsProxy() { @@ -1529,7 +1138,8 @@ public java.lang.String getTargetHttpsProxy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (targetProxyCase_ == 1) { targetProxy_ = s; @@ -1538,25 +1148,25 @@ public java.lang.String getTargetHttpsProxy() { } } /** - * - * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
      * 
* - * string target_https_proxy = 1; - * + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for targetHttpsProxy. */ - public com.google.protobuf.ByteString getTargetHttpsProxyBytes() { + public com.google.protobuf.ByteString + getTargetHttpsProxyBytes() { java.lang.Object ref = ""; if (targetProxyCase_ == 1) { ref = targetProxy_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (targetProxyCase_ == 1) { targetProxy_ = b; } @@ -1568,30 +1178,26 @@ public com.google.protobuf.ByteString getTargetHttpsProxyBytes() { public static final int TARGET_SSL_PROXY_FIELD_NUMBER = 3; /** - * - * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
      * 
* - * string target_ssl_proxy = 3; - * + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetSslProxy field is set. */ public boolean hasTargetSslProxy() { return targetProxyCase_ == 3; } /** - * - * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
      * 
* - * string target_ssl_proxy = 3; - * + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetSslProxy. */ public java.lang.String getTargetSslProxy() { @@ -1602,7 +1208,8 @@ public java.lang.String getTargetSslProxy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.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 (targetProxyCase_ == 3) { targetProxy_ = s; @@ -1611,25 +1218,25 @@ public java.lang.String getTargetSslProxy() { } } /** - * - * *
-     * This field returns the resource name in the following format:
+     * Output only. This field returns the resource name in the following
+     * format:
      * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
      * 
* - * string target_ssl_proxy = 3; - * + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for targetSslProxy. */ - public com.google.protobuf.ByteString getTargetSslProxyBytes() { + public com.google.protobuf.ByteString + getTargetSslProxyBytes() { java.lang.Object ref = ""; if (targetProxyCase_ == 3) { ref = targetProxy_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (targetProxyCase_ == 3) { targetProxy_ = b; } @@ -1640,98 +1247,71 @@ public com.google.protobuf.ByteString getTargetSslProxyBytes() { } public static final int IP_CONFIGS_FIELD_NUMBER = 2; - private java.util.List< - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig> - ipConfigs_; + private java.util.List ipConfigs_; /** - * - * *
-     * IP configurations for this Target Proxy where the
+     * Output only. IP configurations for this Target Proxy where the
      * Certificate Map is serving.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List - getIpConfigsList() { + public java.util.List getIpConfigsList() { return ipConfigs_; } /** - * - * *
-     * IP configurations for this Target Proxy where the
+     * Output only. IP configurations for this Target Proxy where the
      * Certificate Map is serving.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfigOrBuilder> + public java.util.List getIpConfigsOrBuilderList() { return ipConfigs_; } /** - * - * *
-     * IP configurations for this Target Proxy where the
+     * Output only. IP configurations for this Target Proxy where the
      * Certificate Map is serving.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getIpConfigsCount() { return ipConfigs_.size(); } /** - * - * *
-     * IP configurations for this Target Proxy where the
+     * Output only. IP configurations for this Target Proxy where the
      * Certificate Map is serving.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig getIpConfigs( - int index) { + public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig getIpConfigs(int index) { return ipConfigs_.get(index); } /** - * - * *
-     * IP configurations for this Target Proxy where the
+     * Output only. IP configurations for this Target Proxy where the
      * Certificate Map is serving.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfigOrBuilder - getIpConfigsOrBuilder(int index) { + public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfigOrBuilder getIpConfigsOrBuilder( + int index) { return ipConfigs_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1743,7 +1323,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (targetProxyCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetProxy_); } @@ -1753,7 +1334,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (targetProxyCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, targetProxy_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1766,12 +1347,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, targetProxy_); } for (int i = 0; i < ipConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, ipConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, ipConfigs_.get(i)); } if (targetProxyCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, targetProxy_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1779,27 +1361,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.certificatemanager.v1.CertificateMap.GclbTarget)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget other = - (com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget) obj; + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget other = (com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget) obj; - if (!getIpConfigsList().equals(other.getIpConfigsList())) return false; + if (!getIpConfigsList() + .equals(other.getIpConfigsList())) return false; if (!getTargetProxyCase().equals(other.getTargetProxyCase())) return false; switch (targetProxyCase_) { case 1: - if (!getTargetHttpsProxy().equals(other.getTargetHttpsProxy())) return false; + if (!getTargetHttpsProxy() + .equals(other.getTargetHttpsProxy())) return false; break; case 3: - if (!getTargetSslProxy().equals(other.getTargetSslProxy())) return false; + if (!getTargetSslProxy() + .equals(other.getTargetSslProxy())) return false; break; case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1826,101 +1410,93 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1930,76 +1506,63 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Describes a Target Proxy which uses this Certificate Map.
      * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.CertificateMap.GclbTarget} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.CertificateMap.GclbTarget) com.google.cloud.certificatemanager.v1.CertificateMap.GclbTargetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.class, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.Builder.class); + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.class, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.Builder.class); } - // Construct using - // com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.newBuilder() + // Construct using com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.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) { - getIpConfigsFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); if (ipConfigsBuilder_ == null) { ipConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + ipConfigs_ = null; ipConfigsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); targetProxyCase_ = 0; targetProxy_ = null; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CertificateMap_GclbTarget_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget - getDefaultInstanceForType() { - return com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget - .getDefaultInstance(); + public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.getDefaultInstance(); } @java.lang.Override @@ -2013,8 +1576,7 @@ public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget build() @java.lang.Override public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget buildPartial() { - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget result = - new com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget(this); + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget result = new com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget(this); int from_bitField0_ = bitField0_; if (targetProxyCase_ == 1) { result.targetProxy_ = targetProxy_; @@ -2040,53 +1602,46 @@ public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget 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) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget) { - return mergeFrom( - (com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget other) { - if (other - == com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget other) { + if (other == com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.getDefaultInstance()) return this; if (ipConfigsBuilder_ == null) { if (!other.ipConfigs_.isEmpty()) { if (ipConfigs_.isEmpty()) { @@ -2105,36 +1660,32 @@ public Builder mergeFrom( ipConfigsBuilder_ = null; ipConfigs_ = other.ipConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - ipConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getIpConfigsFieldBuilder() - : null; + ipConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getIpConfigsFieldBuilder() : null; } else { ipConfigsBuilder_.addAllMessages(other.ipConfigs_); } } } switch (other.getTargetProxyCase()) { - case TARGET_HTTPS_PROXY: - { - targetProxyCase_ = 1; - targetProxy_ = other.targetProxy_; - onChanged(); - break; - } - case TARGET_SSL_PROXY: - { - targetProxyCase_ = 3; - targetProxy_ = other.targetProxy_; - onChanged(); - break; - } - case TARGETPROXY_NOT_SET: - { - break; - } + case TARGET_HTTPS_PROXY: { + targetProxyCase_ = 1; + targetProxy_ = other.targetProxy_; + onChanged(); + break; + } + case TARGET_SSL_PROXY: { + targetProxyCase_ = 3; + targetProxy_ = other.targetProxy_; + onChanged(); + break; + } + case TARGETPROXY_NOT_SET: { + break; + } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2149,27 +1700,63 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + targetProxyCase_ = 1; + targetProxy_ = s; + break; + } // case 10 + case 18: { + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig m = + input.readMessage( + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.parser(), + extensionRegistry); + if (ipConfigsBuilder_ == null) { + ensureIpConfigsIsMutable(); + ipConfigs_.add(m); + } else { + ipConfigsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + targetProxyCase_ = 3; + targetProxy_ = s; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int targetProxyCase_ = 0; private java.lang.Object targetProxy_; - - public TargetProxyCase getTargetProxyCase() { - return TargetProxyCase.forNumber(targetProxyCase_); + public TargetProxyCase + getTargetProxyCase() { + return TargetProxyCase.forNumber( + targetProxyCase_); } public Builder clearTargetProxy() { @@ -2182,15 +1769,13 @@ public Builder clearTargetProxy() { private int bitField0_; /** - * - * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
        * 
* - * string target_https_proxy = 1; - * + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetHttpsProxy field is set. */ @java.lang.Override @@ -2198,15 +1783,13 @@ public boolean hasTargetHttpsProxy() { return targetProxyCase_ == 1; } /** - * - * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
        * 
* - * string target_https_proxy = 1; - * + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetHttpsProxy. */ @java.lang.Override @@ -2216,7 +1799,8 @@ public java.lang.String getTargetHttpsProxy() { ref = targetProxy_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (targetProxyCase_ == 1) { targetProxy_ = s; @@ -2227,26 +1811,26 @@ public java.lang.String getTargetHttpsProxy() { } } /** - * - * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
        * 
* - * string target_https_proxy = 1; - * + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for targetHttpsProxy. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetHttpsProxyBytes() { + public com.google.protobuf.ByteString + getTargetHttpsProxyBytes() { java.lang.Object ref = ""; if (targetProxyCase_ == 1) { ref = targetProxy_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (targetProxyCase_ == 1) { targetProxy_ = b; } @@ -2256,37 +1840,34 @@ public com.google.protobuf.ByteString getTargetHttpsProxyBytes() { } } /** - * - * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
        * 
* - * string target_https_proxy = 1; - * + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The targetHttpsProxy to set. * @return This builder for chaining. */ - public Builder setTargetHttpsProxy(java.lang.String value) { + public Builder setTargetHttpsProxy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - targetProxyCase_ = 1; + throw new NullPointerException(); + } + targetProxyCase_ = 1; targetProxy_ = value; onChanged(); return this; } /** - * - * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
        * 
* - * string target_https_proxy = 1; - * + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearTargetHttpsProxy() { @@ -2298,23 +1879,22 @@ public Builder clearTargetHttpsProxy() { return this; } /** - * - * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`.
        * 
* - * string target_https_proxy = 1; - * + * string target_https_proxy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for targetHttpsProxy to set. * @return This builder for chaining. */ - public Builder setTargetHttpsProxyBytes(com.google.protobuf.ByteString value) { + public Builder setTargetHttpsProxyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); targetProxyCase_ = 1; targetProxy_ = value; onChanged(); @@ -2322,15 +1902,13 @@ public Builder setTargetHttpsProxyBytes(com.google.protobuf.ByteString value) { } /** - * - * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
        * 
* - * string target_ssl_proxy = 3; - * + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the targetSslProxy field is set. */ @java.lang.Override @@ -2338,15 +1916,13 @@ public boolean hasTargetSslProxy() { return targetProxyCase_ == 3; } /** - * - * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
        * 
* - * string target_ssl_proxy = 3; - * + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The targetSslProxy. */ @java.lang.Override @@ -2356,7 +1932,8 @@ public java.lang.String getTargetSslProxy() { ref = targetProxy_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (targetProxyCase_ == 3) { targetProxy_ = s; @@ -2367,26 +1944,26 @@ public java.lang.String getTargetSslProxy() { } } /** - * - * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
        * 
* - * string target_ssl_proxy = 3; - * + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for targetSslProxy. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetSslProxyBytes() { + public com.google.protobuf.ByteString + getTargetSslProxyBytes() { java.lang.Object ref = ""; if (targetProxyCase_ == 3) { ref = targetProxy_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (targetProxyCase_ == 3) { targetProxy_ = b; } @@ -2396,37 +1973,34 @@ public com.google.protobuf.ByteString getTargetSslProxyBytes() { } } /** - * - * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
        * 
* - * string target_ssl_proxy = 3; - * + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The targetSslProxy to set. * @return This builder for chaining. */ - public Builder setTargetSslProxy(java.lang.String value) { + public Builder setTargetSslProxy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - targetProxyCase_ = 3; + throw new NullPointerException(); + } + targetProxyCase_ = 3; targetProxy_ = value; onChanged(); return this; } /** - * - * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
        * 
* - * string target_ssl_proxy = 3; - * + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearTargetSslProxy() { @@ -2438,64 +2012,49 @@ public Builder clearTargetSslProxy() { return this; } /** - * - * *
-       * This field returns the resource name in the following format:
+       * Output only. This field returns the resource name in the following
+       * format:
        * `//compute.googleapis.com/projects/*/global/targetSslProxies/*`.
        * 
* - * string target_ssl_proxy = 3; - * + * string target_ssl_proxy = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for targetSslProxy to set. * @return This builder for chaining. */ - public Builder setTargetSslProxyBytes(com.google.protobuf.ByteString value) { + public Builder setTargetSslProxyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); targetProxyCase_ = 3; targetProxy_ = value; onChanged(); return this; } - private java.util.List< - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig> - ipConfigs_ = java.util.Collections.emptyList(); - + private java.util.List ipConfigs_ = + java.util.Collections.emptyList(); private void ensureIpConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - ipConfigs_ = - new java.util.ArrayList< - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig>( - ipConfigs_); + ipConfigs_ = new java.util.ArrayList(ipConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfigOrBuilder> - ipConfigsBuilder_; + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfigOrBuilder> ipConfigsBuilder_; /** - * - * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig> - getIpConfigsList() { + public java.util.List getIpConfigsList() { if (ipConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(ipConfigs_); } else { @@ -2503,16 +2062,12 @@ private void ensureIpConfigsIsMutable() { } } /** - * - * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getIpConfigsCount() { if (ipConfigsBuilder_ == null) { @@ -2522,19 +2077,14 @@ public int getIpConfigsCount() { } } /** - * - * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig getIpConfigs( - int index) { + public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig getIpConfigs(int index) { if (ipConfigsBuilder_ == null) { return ipConfigs_.get(index); } else { @@ -2542,20 +2092,15 @@ public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig } } /** - * - * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setIpConfigs( - int index, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig value) { + int index, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig value) { if (ipConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2569,21 +2114,15 @@ public Builder setIpConfigs( return this; } /** - * - * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setIpConfigs( - int index, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder - builderForValue) { + int index, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder builderForValue) { if (ipConfigsBuilder_ == null) { ensureIpConfigsIsMutable(); ipConfigs_.set(index, builderForValue.build()); @@ -2594,19 +2133,14 @@ public Builder setIpConfigs( return this; } /** - * - * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addIpConfigs( - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig value) { + public Builder addIpConfigs(com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig value) { if (ipConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2620,20 +2154,15 @@ public Builder addIpConfigs( return this; } /** - * - * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addIpConfigs( - int index, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig value) { + int index, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig value) { if (ipConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2647,20 +2176,15 @@ public Builder addIpConfigs( return this; } /** - * - * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addIpConfigs( - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder - builderForValue) { + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder builderForValue) { if (ipConfigsBuilder_ == null) { ensureIpConfigsIsMutable(); ipConfigs_.add(builderForValue.build()); @@ -2671,21 +2195,15 @@ public Builder addIpConfigs( return this; } /** - * - * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addIpConfigs( - int index, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder - builderForValue) { + int index, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder builderForValue) { if (ipConfigsBuilder_ == null) { ensureIpConfigsIsMutable(); ipConfigs_.add(index, builderForValue.build()); @@ -2696,25 +2214,19 @@ public Builder addIpConfigs( return this; } /** - * - * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllIpConfigs( - java.lang.Iterable< - ? extends - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig> - values) { + java.lang.Iterable values) { if (ipConfigsBuilder_ == null) { ensureIpConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ipConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ipConfigs_); onChanged(); } else { ipConfigsBuilder_.addAllMessages(values); @@ -2722,16 +2234,12 @@ public Builder addAllIpConfigs( return this; } /** - * - * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearIpConfigs() { if (ipConfigsBuilder_ == null) { @@ -2744,16 +2252,12 @@ public Builder clearIpConfigs() { return this; } /** - * - * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeIpConfigs(int index) { if (ipConfigsBuilder_ == null) { @@ -2766,58 +2270,42 @@ public Builder removeIpConfigs(int index) { return this; } /** - * - * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder - getIpConfigsBuilder(int index) { + public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder getIpConfigsBuilder( + int index) { return getIpConfigsFieldBuilder().getBuilder(index); } /** - * - * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfigOrBuilder - getIpConfigsOrBuilder(int index) { + public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfigOrBuilder getIpConfigsOrBuilder( + int index) { if (ipConfigsBuilder_ == null) { - return ipConfigs_.get(index); - } else { + return ipConfigs_.get(index); } else { return ipConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - ? extends - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget - .IpConfigOrBuilder> - getIpConfigsOrBuilderList() { + public java.util.List + getIpConfigsOrBuilderList() { if (ipConfigsBuilder_ != null) { return ipConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2825,80 +2313,56 @@ public Builder removeIpConfigs(int index) { } } /** - * - * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder - addIpConfigsBuilder() { - return getIpConfigsFieldBuilder() - .addBuilder( - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig - .getDefaultInstance()); + public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder addIpConfigsBuilder() { + return getIpConfigsFieldBuilder().addBuilder( + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.getDefaultInstance()); } /** - * - * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder - addIpConfigsBuilder(int index) { - return getIpConfigsFieldBuilder() - .addBuilder( - index, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig - .getDefaultInstance()); + public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder addIpConfigsBuilder( + int index) { + return getIpConfigsFieldBuilder().addBuilder( + index, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.getDefaultInstance()); } /** - * - * *
-       * IP configurations for this Target Proxy where the
+       * Output only. IP configurations for this Target Proxy where the
        * Certificate Map is serving.
        * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig ip_configs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder> - getIpConfigsBuilderList() { + public java.util.List + getIpConfigsBuilderList() { return getIpConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfigOrBuilder> + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfigOrBuilder> getIpConfigsFieldBuilder() { if (ipConfigsBuilder_ == null) { - ipConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget - .IpConfigOrBuilder>( - ipConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + ipConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfig.Builder, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.IpConfigOrBuilder>( + ipConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); ipConfigs_ = null; } return ipConfigsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2911,32 +2375,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.CertificateMap.GclbTarget) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.CertificateMap.GclbTarget) - private static final com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget(); } - public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GclbTarget parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GclbTarget(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GclbTarget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2948,17 +2421,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * A user-defined name of the Certificate Map. Certificate Map names must be
    * unique globally and match pattern
@@ -2966,7 +2437,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -2975,15 +2445,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; } } /** - * - * *
    * A user-defined name of the Certificate Map. Certificate Map names must be
    * unique globally and match pattern
@@ -2991,15 +2460,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -3010,14 +2480,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 5; private volatile java.lang.Object description_; /** - * - * *
    * One or more paragraphs of text description of a certificate map.
    * 
* * string description = 5; - * * @return The description. */ @java.lang.Override @@ -3026,29 +2493,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; } } /** - * - * *
    * One or more paragraphs of text description of a certificate map.
    * 
* * string description = 5; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -3059,15 +2526,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The creation timestamp of a Certificate Map.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -3075,15 +2538,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The creation timestamp of a Certificate Map.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -3091,14 +2550,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The creation timestamp of a Certificate Map.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -3108,15 +2564,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The update timestamp of a Certificate Map.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -3124,15 +2576,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The update timestamp of a Certificate Map.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -3140,14 +2588,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The update timestamp of a Certificate Map.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -3155,23 +2600,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 3; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CertificateMap_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.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CertificateMap_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_; } @@ -3180,30 +2626,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Set of labels associated with a Certificate Map.
    * 
* * map<string, string> labels = 3; */ + @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(); } /** - * - * *
    * Set of labels associated with a Certificate Map.
    * 
@@ -3211,12 +2655,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 3; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Set of labels associated with a Certificate Map.
    * 
@@ -3224,16 +2667,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 3; */ @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; } /** - * - * *
    * Set of labels associated with a Certificate Map.
    * 
@@ -3241,11 +2684,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 3; */ @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(); } @@ -3253,91 +2697,76 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int GCLB_TARGETS_FIELD_NUMBER = 4; - private java.util.List - gclbTargets_; + private java.util.List gclbTargets_; /** - * - * *
    * Output only. A list of GCLB targets which use this Certificate Map.
+   * A Target Proxy is only present on this list if it's attached to a
+   * Forwarding Rule.
    * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List - getGclbTargetsList() { + public java.util.List getGclbTargetsList() { return gclbTargets_; } /** - * - * *
    * Output only. A list of GCLB targets which use this Certificate Map.
+   * A Target Proxy is only present on this list if it's attached to a
+   * Forwarding Rule.
    * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.certificatemanager.v1.CertificateMap.GclbTargetOrBuilder> + public java.util.List getGclbTargetsOrBuilderList() { return gclbTargets_; } /** - * - * *
    * Output only. A list of GCLB targets which use this Certificate Map.
+   * A Target Proxy is only present on this list if it's attached to a
+   * Forwarding Rule.
    * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getGclbTargetsCount() { return gclbTargets_.size(); } /** - * - * *
    * Output only. A list of GCLB targets which use this Certificate Map.
+   * A Target Proxy is only present on this list if it's attached to a
+   * Forwarding Rule.
    * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget getGclbTargets( - int index) { + public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget getGclbTargets(int index) { return gclbTargets_.get(index); } /** - * - * *
    * Output only. A list of GCLB targets which use this Certificate Map.
+   * A Target Proxy is only present on this list if it's attached to a
+   * Forwarding Rule.
    * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTargetOrBuilder - getGclbTargetsOrBuilder(int index) { + public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTargetOrBuilder getGclbTargetsOrBuilder( + int index) { return gclbTargets_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3349,15 +2778,20 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (createTime_ != null) { output.writeMessage(2, getCreateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 3); for (int i = 0; i < gclbTargets_.size(); i++) { output.writeMessage(4, gclbTargets_.get(i)); } @@ -3367,7 +2801,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(6, getUpdateTime()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -3380,28 +2814,31 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, labels__); } for (int i = 0; i < gclbTargets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, gclbTargets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, gclbTargets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getUpdateTime()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -3409,27 +2846,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.certificatemanager.v1.CertificateMap)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.CertificateMap other = - (com.google.cloud.certificatemanager.v1.CertificateMap) obj; + com.google.cloud.certificatemanager.v1.CertificateMap other = (com.google.cloud.certificatemanager.v1.CertificateMap) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (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 (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getGclbTargetsList().equals(other.getGclbTargetsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getGclbTargetsList() + .equals(other.getGclbTargetsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3460,171 +2902,157 @@ public int hashCode() { hash = (37 * hash) + GCLB_TARGETS_FIELD_NUMBER; hash = (53 * hash) + getGclbTargetsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.CertificateMap parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.CertificateMap parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.CertificateMap parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.CertificateMap parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.CertificateMap parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.CertificateMap parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.CertificateMap parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.CertificateMap parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.CertificateMap parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.CertificateMap parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.CertificateMap parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.CertificateMap parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.CertificateMap parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.CertificateMap parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.CertificateMap prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.CertificateMap prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Defines a collection of certificate configurations.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.CertificateMap} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.CertificateMap) com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CertificateMap_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CertificateMap_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: 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 3: 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.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CertificateMap_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CertificateMap_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.CertificateMap.class, - com.google.cloud.certificatemanager.v1.CertificateMap.Builder.class); + com.google.cloud.certificatemanager.v1.CertificateMap.class, com.google.cloud.certificatemanager.v1.CertificateMap.Builder.class); } // Construct using com.google.cloud.certificatemanager.v1.CertificateMap.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) { - getGclbTargetsFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3647,17 +3075,18 @@ public Builder clear() { internalGetMutableLabels().clear(); if (gclbTargetsBuilder_ == null) { gclbTargets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + gclbTargets_ = null; gclbTargetsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CertificateMap_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CertificateMap_descriptor; } @java.lang.Override @@ -3676,8 +3105,7 @@ public com.google.cloud.certificatemanager.v1.CertificateMap build() { @java.lang.Override public com.google.cloud.certificatemanager.v1.CertificateMap buildPartial() { - com.google.cloud.certificatemanager.v1.CertificateMap result = - new com.google.cloud.certificatemanager.v1.CertificateMap(this); + com.google.cloud.certificatemanager.v1.CertificateMap result = new com.google.cloud.certificatemanager.v1.CertificateMap(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; @@ -3710,39 +3138,38 @@ public com.google.cloud.certificatemanager.v1.CertificateMap buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.certificatemanager.v1.CertificateMap) { - return mergeFrom((com.google.cloud.certificatemanager.v1.CertificateMap) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.CertificateMap)other); } else { super.mergeFrom(other); return this; @@ -3750,8 +3177,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.certificatemanager.v1.CertificateMap other) { - if (other == com.google.cloud.certificatemanager.v1.CertificateMap.getDefaultInstance()) - return this; + if (other == com.google.cloud.certificatemanager.v1.CertificateMap.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -3766,7 +3192,8 @@ public Builder mergeFrom(com.google.cloud.certificatemanager.v1.CertificateMap o if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (gclbTargetsBuilder_ == null) { if (!other.gclbTargets_.isEmpty()) { if (gclbTargets_.isEmpty()) { @@ -3785,16 +3212,15 @@ public Builder mergeFrom(com.google.cloud.certificatemanager.v1.CertificateMap o gclbTargetsBuilder_ = null; gclbTargets_ = other.gclbTargets_; bitField0_ = (bitField0_ & ~0x00000002); - gclbTargetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGclbTargetsFieldBuilder() - : null; + gclbTargetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGclbTargetsFieldBuilder() : null; } else { gclbTargetsBuilder_.addAllMessages(other.gclbTargets_); } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -3809,27 +3235,81 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.CertificateMap parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 26 + case 34: { + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget m = + input.readMessage( + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.parser(), + extensionRegistry); + if (gclbTargetsBuilder_ == null) { + ensureGclbTargetsIsMutable(); + gclbTargets_.add(m); + } else { + gclbTargetsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.CertificateMap) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * A user-defined name of the Certificate Map. Certificate Map names must be
      * unique globally and match pattern
@@ -3837,13 +3317,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -3852,8 +3332,6 @@ public java.lang.String getName() { } } /** - * - * *
      * A user-defined name of the Certificate Map. Certificate Map names must be
      * unique globally and match pattern
@@ -3861,14 +3339,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -3876,8 +3355,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * A user-defined name of the Certificate Map. Certificate Map names must be
      * unique globally and match pattern
@@ -3885,22 +3362,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * A user-defined name of the Certificate Map. Certificate Map names must be
      * unique globally and match pattern
@@ -3908,18 +3383,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * A user-defined name of the Certificate Map. Certificate Map names must be
      * unique globally and match pattern
@@ -3927,16 +3399,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -3944,20 +3416,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * One or more paragraphs of text description of a certificate map.
      * 
* * string description = 5; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -3966,21 +3436,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * One or more paragraphs of text description of a certificate map.
      * 
* * string description = 5; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -3988,61 +3457,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * One or more paragraphs of text description of a certificate map.
      * 
* * string description = 5; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * One or more paragraphs of text description of a certificate map.
      * 
* * string description = 5; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * One or more paragraphs of text description of a certificate map.
      * 
* * string description = 5; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -4050,58 +3512,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 creation timestamp of a Certificate Map.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The creation timestamp of a Certificate Map.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The creation timestamp of a Certificate Map.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -4117,17 +3560,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation timestamp of a Certificate Map.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -4138,21 +3578,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The creation timestamp of a Certificate Map.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -4164,15 +3600,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation timestamp of a Certificate Map.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -4186,64 +3618,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The creation timestamp of a Certificate Map.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The creation timestamp of a Certificate Map.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The creation timestamp of a Certificate Map.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -4251,58 +3667,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 update timestamp of a Certificate Map.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The update timestamp of a Certificate Map.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.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 update timestamp of a Certificate Map.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -4318,17 +3715,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The update timestamp of a Certificate Map.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.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(); @@ -4339,21 +3733,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The update timestamp of a Certificate Map.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.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; } @@ -4365,15 +3755,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The update timestamp of a Certificate Map.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -4387,84 +3773,69 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The update timestamp of a Certificate Map.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The update timestamp of a Certificate Map.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.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 update timestamp of a Certificate Map.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_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> 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(); @@ -4476,30 +3847,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Set of labels associated with a Certificate Map.
      * 
* * map<string, string> labels = 3; */ + @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(); } /** - * - * *
      * Set of labels associated with a Certificate Map.
      * 
@@ -4507,12 +3876,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 3; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Set of labels associated with a Certificate Map.
      * 
@@ -4520,17 +3888,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 3; */ @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; } /** - * - * *
      * Set of labels associated with a Certificate Map.
      * 
@@ -4538,11 +3905,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 3; */ @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(); } @@ -4550,95 +3918,89 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Set of labels associated with a Certificate Map.
      * 
* * map<string, string> labels = 3; */ - 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(); } /** - * - * *
      * Set of labels associated with a Certificate Map.
      * 
* * map<string, string> labels = 3; */ - 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; } /** - * - * *
      * Set of labels associated with a Certificate Map.
      * 
* * map<string, string> labels = 3; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } - private java.util.List - gclbTargets_ = java.util.Collections.emptyList(); - + private java.util.List gclbTargets_ = + java.util.Collections.emptyList(); private void ensureGclbTargetsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - gclbTargets_ = - new java.util.ArrayList< - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget>(gclbTargets_); + gclbTargets_ = new java.util.ArrayList(gclbTargets_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.Builder, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTargetOrBuilder> - gclbTargetsBuilder_; + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.Builder, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTargetOrBuilder> gclbTargetsBuilder_; /** - * - * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getGclbTargetsList() { + public java.util.List getGclbTargetsList() { if (gclbTargetsBuilder_ == null) { return java.util.Collections.unmodifiableList(gclbTargets_); } else { @@ -4646,15 +4008,13 @@ private void ensureGclbTargetsIsMutable() { } } /** - * - * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getGclbTargetsCount() { if (gclbTargetsBuilder_ == null) { @@ -4664,18 +4024,15 @@ public int getGclbTargetsCount() { } } /** - * - * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget getGclbTargets( - int index) { + public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget getGclbTargets(int index) { if (gclbTargetsBuilder_ == null) { return gclbTargets_.get(index); } else { @@ -4683,15 +4040,13 @@ public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget getGclbT } } /** - * - * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setGclbTargets( int index, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget value) { @@ -4708,19 +4063,16 @@ public Builder setGclbTargets( return this; } /** - * - * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setGclbTargets( - int index, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.Builder builderForValue) { + int index, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.Builder builderForValue) { if (gclbTargetsBuilder_ == null) { ensureGclbTargetsIsMutable(); gclbTargets_.set(index, builderForValue.build()); @@ -4731,18 +4083,15 @@ public Builder setGclbTargets( return this; } /** - * - * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addGclbTargets( - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget value) { + public Builder addGclbTargets(com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget value) { if (gclbTargetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4756,15 +4105,13 @@ public Builder addGclbTargets( return this; } /** - * - * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addGclbTargets( int index, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget value) { @@ -4781,15 +4128,13 @@ public Builder addGclbTargets( return this; } /** - * - * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addGclbTargets( com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.Builder builderForValue) { @@ -4803,19 +4148,16 @@ public Builder addGclbTargets( return this; } /** - * - * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addGclbTargets( - int index, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.Builder builderForValue) { + int index, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.Builder builderForValue) { if (gclbTargetsBuilder_ == null) { ensureGclbTargetsIsMutable(); gclbTargets_.add(index, builderForValue.build()); @@ -4826,23 +4168,20 @@ public Builder addGclbTargets( return this; } /** - * - * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllGclbTargets( - java.lang.Iterable< - ? extends com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget> - values) { + java.lang.Iterable values) { if (gclbTargetsBuilder_ == null) { ensureGclbTargetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gclbTargets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, gclbTargets_); onChanged(); } else { gclbTargetsBuilder_.addAllMessages(values); @@ -4850,15 +4189,13 @@ public Builder addAllGclbTargets( return this; } /** - * - * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearGclbTargets() { if (gclbTargetsBuilder_ == null) { @@ -4871,15 +4208,13 @@ public Builder clearGclbTargets() { return this; } /** - * - * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeGclbTargets(int index) { if (gclbTargetsBuilder_ == null) { @@ -4892,53 +4227,45 @@ public Builder removeGclbTargets(int index) { return this; } /** - * - * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.Builder - getGclbTargetsBuilder(int index) { + public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.Builder getGclbTargetsBuilder( + int index) { return getGclbTargetsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTargetOrBuilder - getGclbTargetsOrBuilder(int index) { + public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTargetOrBuilder getGclbTargetsOrBuilder( + int index) { if (gclbTargetsBuilder_ == null) { - return gclbTargets_.get(index); - } else { + return gclbTargets_.get(index); } else { return gclbTargetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - ? extends com.google.cloud.certificatemanager.v1.CertificateMap.GclbTargetOrBuilder> - getGclbTargetsOrBuilderList() { + public java.util.List + getGclbTargetsOrBuilderList() { if (gclbTargetsBuilder_ != null) { return gclbTargetsBuilder_.getMessageOrBuilderList(); } else { @@ -4946,77 +4273,62 @@ public Builder removeGclbTargets(int index) { } } /** - * - * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.Builder - addGclbTargetsBuilder() { - return getGclbTargetsFieldBuilder() - .addBuilder( - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget - .getDefaultInstance()); + public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.Builder addGclbTargetsBuilder() { + return getGclbTargetsFieldBuilder().addBuilder( + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.getDefaultInstance()); } /** - * - * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.Builder - addGclbTargetsBuilder(int index) { - return getGclbTargetsFieldBuilder() - .addBuilder( - index, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget - .getDefaultInstance()); + public com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.Builder addGclbTargetsBuilder( + int index) { + return getGclbTargetsFieldBuilder().addBuilder( + index, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.getDefaultInstance()); } /** - * - * *
      * Output only. A list of GCLB targets which use this Certificate Map.
+     * A Target Proxy is only present on this list if it's attached to a
+     * Forwarding Rule.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getGclbTargetsBuilderList() { + public java.util.List + getGclbTargetsBuilderList() { return getGclbTargetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.Builder, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTargetOrBuilder> + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.Builder, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTargetOrBuilder> getGclbTargetsFieldBuilder() { if (gclbTargetsBuilder_ == null) { - gclbTargetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.Builder, - com.google.cloud.certificatemanager.v1.CertificateMap.GclbTargetOrBuilder>( - gclbTargets_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + gclbTargetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget.Builder, com.google.cloud.certificatemanager.v1.CertificateMap.GclbTargetOrBuilder>( + gclbTargets_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); gclbTargets_ = null; } return gclbTargetsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5026,12 +4338,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.CertificateMap) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.CertificateMap) private static final com.google.cloud.certificatemanager.v1.CertificateMap DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.CertificateMap(); } @@ -5040,16 +4352,27 @@ public static com.google.cloud.certificatemanager.v1.CertificateMap getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateMap parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateMap(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateMap parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5064,4 +4387,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.certificatemanager.v1.CertificateMap getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntry.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntry.java similarity index 67% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntry.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntry.java index c3e00de2f901..9ec179f43571 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntry.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntry.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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Defines a certificate map entry.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.CertificateMapEntry} */ -public final class CertificateMapEntry extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CertificateMapEntry extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.CertificateMapEntry) CertificateMapEntryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CertificateMapEntry.newBuilder() to construct. private CertificateMapEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CertificateMapEntry() { name_ = ""; description_ = ""; @@ -46,175 +28,42 @@ private CertificateMapEntry() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CertificateMapEntry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private CertificateMapEntry( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - 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 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - matchCase_ = 5; - match_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - certificates_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - certificates_.add(s); - break; - } - case 64: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 80: - { - int rawValue = input.readEnum(); - matchCase_ = 10; - match_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - certificates_ = certificates_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_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 4: 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.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.CertificateMapEntry.class, - com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder.class); + com.google.cloud.certificatemanager.v1.CertificateMapEntry.class, com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder.class); } /** - * - * *
    * Defines predefined cases other than SNI-hostname match when this
    * configuration should be applied.
@@ -222,10 +71,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    *
    * Protobuf enum {@code google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher}
    */
-  public enum Matcher implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Matcher
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * A matcher has't been recognized.
      * 
@@ -234,8 +82,6 @@ public enum Matcher implements com.google.protobuf.ProtocolMessageEnum { */ MATCHER_UNSPECIFIED(0), /** - * - * *
      * A primary certificate that is served when SNI wasn't specified in the
      * request or SNI couldn't be found in the map.
@@ -248,8 +94,6 @@ public enum Matcher implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * A matcher has't been recognized.
      * 
@@ -258,8 +102,6 @@ public enum Matcher implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MATCHER_UNSPECIFIED_VALUE = 0; /** - * - * *
      * A primary certificate that is served when SNI wasn't specified in the
      * request or SNI couldn't be found in the map.
@@ -269,6 +111,7 @@ public enum Matcher implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int PRIMARY_VALUE = 1;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -293,49 +136,48 @@ public static Matcher valueOf(int value) {
      */
     public static Matcher forNumber(int value) {
       switch (value) {
-        case 0:
-          return MATCHER_UNSPECIFIED;
-        case 1:
-          return PRIMARY;
-        default:
-          return null;
+        case 0: return MATCHER_UNSPECIFIED;
+        case 1: return PRIMARY;
+        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<
+        Matcher> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Matcher findValueByNumber(int number) {
+              return Matcher.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Matcher findValueByNumber(int number) {
-            return Matcher.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.certificatemanager.v1.CertificateMapEntry.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.certificatemanager.v1.CertificateMapEntry.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Matcher[] VALUES = values();
 
-    public static Matcher valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Matcher 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;
@@ -354,16 +196,13 @@ private Matcher(int value) {
 
   private int matchCase_ = 0;
   private java.lang.Object match_;
-
   public enum MatchCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     HOSTNAME(5),
     MATCHER(10),
     MATCH_NOT_SET(0);
     private final int value;
-
     private MatchCase(int value) {
       this.value = value;
     }
@@ -379,31 +218,26 @@ public static MatchCase valueOf(int value) {
 
     public static MatchCase forNumber(int value) {
       switch (value) {
-        case 5:
-          return HOSTNAME;
-        case 10:
-          return MATCHER;
-        case 0:
-          return MATCH_NOT_SET;
-        default:
-          return null;
+        case 5: return HOSTNAME;
+        case 10: return MATCHER;
+        case 0: return MATCH_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public MatchCase getMatchCase() {
-    return MatchCase.forNumber(matchCase_);
+  public MatchCase
+  getMatchCase() {
+    return MatchCase.forNumber(
+        matchCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * A user-defined name of the Certificate Map Entry. Certificate Map Entry
    * names must be unique globally and match pattern
@@ -411,7 +245,6 @@ public MatchCase getMatchCase() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -420,15 +253,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; } } /** - * - * *
    * A user-defined name of the Certificate Map Entry. Certificate Map Entry
    * names must be unique globally and match pattern
@@ -436,15 +268,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -455,14 +288,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 9; private volatile java.lang.Object description_; /** - * - * *
    * One or more paragraphs of text description of a certificate map entry.
    * 
* * string description = 9; - * * @return The description. */ @java.lang.Override @@ -471,29 +301,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; } } /** - * - * *
    * One or more paragraphs of text description of a certificate map entry.
    * 
* * string description = 9; - * * @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 { @@ -504,15 +334,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The creation timestamp of a Certificate Map Entry.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -520,15 +346,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The creation timestamp of a Certificate Map Entry.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -536,14 +358,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The creation timestamp of a Certificate Map Entry.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -553,15 +372,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The update timestamp of a Certificate Map Entry.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -569,15 +384,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The update timestamp of a Certificate Map Entry.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -585,14 +396,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The update timestamp of a Certificate Map Entry.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -600,23 +408,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_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.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_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_; } @@ -625,30 +434,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Set of labels associated with a Certificate Map Entry.
    * 
* * map<string, string> labels = 4; */ + @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(); } /** - * - * *
    * Set of labels associated with a Certificate Map Entry.
    * 
@@ -656,12 +463,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Set of labels associated with a Certificate Map Entry.
    * 
@@ -669,16 +475,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @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; } /** - * - * *
    * Set of labels associated with a Certificate Map Entry.
    * 
@@ -686,11 +492,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 4; */ @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(); } @@ -699,8 +506,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int HOSTNAME_FIELD_NUMBER = 5; /** - * - * *
    * A Hostname (FQDN, e.g. `example.com`) or a wildcard hostname expression
    * (`*.example.com`) for a set of hostnames with common suffix. Used as
@@ -708,15 +513,12 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 
* * string hostname = 5; - * * @return Whether the hostname field is set. */ public boolean hasHostname() { return matchCase_ == 5; } /** - * - * *
    * A Hostname (FQDN, e.g. `example.com`) or a wildcard hostname expression
    * (`*.example.com`) for a set of hostnames with common suffix. Used as
@@ -724,7 +526,6 @@ public boolean hasHostname() {
    * 
* * string hostname = 5; - * * @return The hostname. */ public java.lang.String getHostname() { @@ -735,7 +536,8 @@ public java.lang.String getHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (matchCase_ == 5) { match_ = s; @@ -744,8 +546,6 @@ public java.lang.String getHostname() { } } /** - * - * *
    * A Hostname (FQDN, e.g. `example.com`) or a wildcard hostname expression
    * (`*.example.com`) for a set of hostnames with common suffix. Used as
@@ -753,17 +553,18 @@ public java.lang.String getHostname() {
    * 
* * string hostname = 5; - * * @return The bytes for hostname. */ - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = ""; if (matchCase_ == 5) { ref = match_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString 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 (matchCase_ == 5) { match_ = b; } @@ -775,28 +576,22 @@ public com.google.protobuf.ByteString getHostnameBytes() { public static final int MATCHER_FIELD_NUMBER = 10; /** - * - * *
    * A predefined matcher for particular cases, other than SNI selection.
    * 
* * .google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher matcher = 10; - * * @return Whether the matcher field is set. */ public boolean hasMatcher() { return matchCase_ == 10; } /** - * - * *
    * A predefined matcher for particular cases, other than SNI selection.
    * 
* * .google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher matcher = 10; - * * @return The enum numeric value on the wire for matcher. */ public int getMatcherValue() { @@ -806,25 +601,19 @@ public int getMatcherValue() { return 0; } /** - * - * *
    * A predefined matcher for particular cases, other than SNI selection.
    * 
* * .google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher matcher = 10; - * * @return The matcher. */ public com.google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher getMatcher() { if (matchCase_ == 10) { @SuppressWarnings("deprecation") - com.google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher result = - com.google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher.valueOf( - (java.lang.Integer) match_); - return result == null - ? com.google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher.UNRECOGNIZED - : result; + com.google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher result = com.google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher.valueOf( + (java.lang.Integer) match_); + return result == null ? com.google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher.UNRECOGNIZED : result; } return com.google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher.MATCHER_UNSPECIFIED; } @@ -832,8 +621,6 @@ public com.google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher getMat public static final int CERTIFICATES_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList certificates_; /** - * - * *
    * A set of Certificates defines for the given `hostname`. There can be
    * defined up to fifteen certificates in each Certificate Map Entry. Each
@@ -841,15 +628,13 @@ public com.google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher getMat
    * 
* * repeated string certificates = 7 [(.google.api.resource_reference) = { ... } - * * @return A list containing the certificates. */ - public com.google.protobuf.ProtocolStringList getCertificatesList() { + public com.google.protobuf.ProtocolStringList + getCertificatesList() { return certificates_; } /** - * - * *
    * A set of Certificates defines for the given `hostname`. There can be
    * defined up to fifteen certificates in each Certificate Map Entry. Each
@@ -857,15 +642,12 @@ public com.google.protobuf.ProtocolStringList getCertificatesList() {
    * 
* * repeated string certificates = 7 [(.google.api.resource_reference) = { ... } - * * @return The count of certificates. */ public int getCertificatesCount() { return certificates_.size(); } /** - * - * *
    * A set of Certificates defines for the given `hostname`. There can be
    * defined up to fifteen certificates in each Certificate Map Entry. Each
@@ -873,7 +655,6 @@ public int getCertificatesCount() {
    * 
* * repeated string certificates = 7 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The certificates at the given index. */ @@ -881,8 +662,6 @@ public java.lang.String getCertificates(int index) { return certificates_.get(index); } /** - * - * *
    * A set of Certificates defines for the given `hostname`. There can be
    * defined up to fifteen certificates in each Certificate Map Entry. Each
@@ -890,58 +669,42 @@ public java.lang.String getCertificates(int index) {
    * 
* * repeated string certificates = 7 [(.google.api.resource_reference) = { ... } - * * @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); } public static final int STATE_FIELD_NUMBER = 8; private int state_; /** - * - * *
    * Output only. A serving state of this Certificate Map Entry.
    * 
* - * - * .google.cloud.certificatemanager.v1.ServingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.ServingState 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. A serving state of this Certificate Map Entry.
    * 
* - * - * .google.cloud.certificatemanager.v1.ServingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.ServingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.certificatemanager.v1.ServingState getState() { + @java.lang.Override public com.google.cloud.certificatemanager.v1.ServingState getState() { @SuppressWarnings("deprecation") - com.google.cloud.certificatemanager.v1.ServingState result = - com.google.cloud.certificatemanager.v1.ServingState.valueOf(state_); - return result == null - ? com.google.cloud.certificatemanager.v1.ServingState.UNRECOGNIZED - : result; + com.google.cloud.certificatemanager.v1.ServingState result = com.google.cloud.certificatemanager.v1.ServingState.valueOf(state_); + return result == null ? com.google.cloud.certificatemanager.v1.ServingState.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -953,7 +716,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -963,17 +727,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (matchCase_ == 5) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, match_); } for (int i = 0; i < certificates_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, certificates_.getRaw(i)); } - if (state_ - != com.google.cloud.certificatemanager.v1.ServingState.SERVING_STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.certificatemanager.v1.ServingState.SERVING_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(8, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { @@ -982,7 +748,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (matchCase_ == 10) { output.writeEnum(10, ((java.lang.Integer) match_)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -995,20 +761,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, 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(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, 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(4, labels__); } if (matchCase_ == 5) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, match_); @@ -1021,19 +789,18 @@ public int getSerializedSize() { size += dataSize; size += 1 * getCertificatesList().size(); } - if (state_ - != com.google.cloud.certificatemanager.v1.ServingState.SERVING_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); + if (state_ != com.google.cloud.certificatemanager.v1.ServingState.SERVING_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, description_); } if (matchCase_ == 10) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(10, ((java.lang.Integer) match_)); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, ((java.lang.Integer) match_)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1041,39 +808,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.certificatemanager.v1.CertificateMapEntry)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.CertificateMapEntry other = - (com.google.cloud.certificatemanager.v1.CertificateMapEntry) obj; + com.google.cloud.certificatemanager.v1.CertificateMapEntry other = (com.google.cloud.certificatemanager.v1.CertificateMapEntry) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (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 (!getCertificatesList().equals(other.getCertificatesList())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getCertificatesList() + .equals(other.getCertificatesList())) return false; if (state_ != other.state_) return false; if (!getMatchCase().equals(other.getMatchCase())) return false; switch (matchCase_) { case 5: - if (!getHostname().equals(other.getHostname())) return false; + if (!getHostname() + .equals(other.getHostname())) return false; break; case 10: - if (getMatcherValue() != other.getMatcherValue()) return false; + if (getMatcherValue() + != other.getMatcherValue()) return false; break; case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1118,169 +892,157 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.CertificateMapEntry parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.CertificateMapEntry parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.CertificateMapEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.CertificateMapEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.CertificateMapEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.CertificateMapEntry parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.CertificateMapEntry parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.CertificateMapEntry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.CertificateMapEntry parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.CertificateMapEntry parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.CertificateMapEntry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.CertificateMapEntry parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.CertificateMapEntry parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.CertificateMapEntry parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.CertificateMapEntry prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.CertificateMapEntry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Defines a certificate map entry.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.CertificateMapEntry} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.CertificateMapEntry) com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: 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 4: 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.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.CertificateMapEntry.class, - com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder.class); + com.google.cloud.certificatemanager.v1.CertificateMapEntry.class, com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder.class); } // Construct using com.google.cloud.certificatemanager.v1.CertificateMapEntry.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -1311,9 +1073,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CertificateMapEntry_descriptor; } @java.lang.Override @@ -1332,8 +1094,7 @@ public com.google.cloud.certificatemanager.v1.CertificateMapEntry build() { @java.lang.Override public com.google.cloud.certificatemanager.v1.CertificateMapEntry buildPartial() { - com.google.cloud.certificatemanager.v1.CertificateMapEntry result = - new com.google.cloud.certificatemanager.v1.CertificateMapEntry(this); + com.google.cloud.certificatemanager.v1.CertificateMapEntry result = new com.google.cloud.certificatemanager.v1.CertificateMapEntry(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; @@ -1370,39 +1131,38 @@ public com.google.cloud.certificatemanager.v1.CertificateMapEntry buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.certificatemanager.v1.CertificateMapEntry) { - return mergeFrom((com.google.cloud.certificatemanager.v1.CertificateMapEntry) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.CertificateMapEntry)other); } else { super.mergeFrom(other); return this; @@ -1410,8 +1170,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.certificatemanager.v1.CertificateMapEntry other) { - if (other == com.google.cloud.certificatemanager.v1.CertificateMapEntry.getDefaultInstance()) - return this; + if (other == com.google.cloud.certificatemanager.v1.CertificateMapEntry.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1426,7 +1185,8 @@ public Builder mergeFrom(com.google.cloud.certificatemanager.v1.CertificateMapEn if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (!other.certificates_.isEmpty()) { if (certificates_.isEmpty()) { certificates_ = other.certificates_; @@ -1441,24 +1201,21 @@ public Builder mergeFrom(com.google.cloud.certificatemanager.v1.CertificateMapEn setStateValue(other.getStateValue()); } switch (other.getMatchCase()) { - case HOSTNAME: - { - matchCase_ = 5; - match_ = other.match_; - onChanged(); - break; - } - case MATCHER: - { - setMatcherValue(other.getMatcherValue()); - break; - } - case MATCH_NOT_SET: - { - break; - } + case HOSTNAME: { + matchCase_ = 5; + match_ = other.match_; + onChanged(); + break; + } + case MATCHER: { + setMatcherValue(other.getMatcherValue()); + break; + } + case MATCH_NOT_SET: { + break; + } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1473,26 +1230,93 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.CertificateMapEntry parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + matchCase_ = 5; + match_ = s; + break; + } // case 42 + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + ensureCertificatesIsMutable(); + certificates_.add(s); + break; + } // case 58 + case 64: { + state_ = input.readEnum(); + + break; + } // case 64 + case 74: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 74 + case 80: { + int rawValue = input.readEnum(); + matchCase_ = 10; + match_ = rawValue; + break; + } // case 80 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.CertificateMapEntry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int matchCase_ = 0; private java.lang.Object match_; - - public MatchCase getMatchCase() { - return MatchCase.forNumber(matchCase_); + public MatchCase + getMatchCase() { + return MatchCase.forNumber( + matchCase_); } public Builder clearMatch() { @@ -1506,8 +1330,6 @@ public Builder clearMatch() { private java.lang.Object name_ = ""; /** - * - * *
      * A user-defined name of the Certificate Map Entry. Certificate Map Entry
      * names must be unique globally and match pattern
@@ -1515,13 +1337,13 @@ public Builder clearMatch() {
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1530,8 +1352,6 @@ public java.lang.String getName() { } } /** - * - * *
      * A user-defined name of the Certificate Map Entry. Certificate Map Entry
      * names must be unique globally and match pattern
@@ -1539,14 +1359,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1554,8 +1375,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * A user-defined name of the Certificate Map Entry. Certificate Map Entry
      * names must be unique globally and match pattern
@@ -1563,22 +1382,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * A user-defined name of the Certificate Map Entry. Certificate Map Entry
      * names must be unique globally and match pattern
@@ -1586,18 +1403,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * A user-defined name of the Certificate Map Entry. Certificate Map Entry
      * names must be unique globally and match pattern
@@ -1605,16 +1419,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1622,20 +1436,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * One or more paragraphs of text description of a certificate map entry.
      * 
* * string description = 9; - * * @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; @@ -1644,21 +1456,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * One or more paragraphs of text description of a certificate map entry.
      * 
* * string description = 9; - * * @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 { @@ -1666,61 +1477,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * One or more paragraphs of text description of a certificate map entry.
      * 
* * string description = 9; - * * @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; } /** - * - * *
      * One or more paragraphs of text description of a certificate map entry.
      * 
* * string description = 9; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * One or more paragraphs of text description of a certificate map entry.
      * 
* * string description = 9; - * * @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; @@ -1728,58 +1532,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 creation timestamp of a Certificate Map Entry.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The creation timestamp of a Certificate Map Entry.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The creation timestamp of a Certificate Map Entry.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1795,17 +1580,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation timestamp of a Certificate Map Entry.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1816,21 +1598,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The creation timestamp of a Certificate Map Entry.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1842,15 +1620,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation timestamp of a Certificate Map Entry.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1864,64 +1638,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The creation timestamp of a Certificate Map Entry.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The creation timestamp of a Certificate Map Entry.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The creation timestamp of a Certificate Map Entry.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1929,58 +1687,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 update timestamp of a Certificate Map Entry.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The update timestamp of a Certificate Map Entry.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The update timestamp of a Certificate Map Entry.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1996,17 +1735,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The update timestamp of a Certificate Map Entry.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2017,21 +1753,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The update timestamp of a Certificate Map Entry.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2043,15 +1775,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The update timestamp of a Certificate Map Entry.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2065,84 +1793,69 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The update timestamp of a Certificate Map Entry.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The update timestamp of a Certificate Map Entry.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The update timestamp of a Certificate Map Entry.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - 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(); @@ -2154,30 +1867,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Set of labels associated with a Certificate Map Entry.
      * 
* * map<string, string> labels = 4; */ + @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(); } /** - * - * *
      * Set of labels associated with a Certificate Map Entry.
      * 
@@ -2185,12 +1896,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Set of labels associated with a Certificate Map Entry.
      * 
@@ -2198,17 +1908,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @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; } /** - * - * *
      * Set of labels associated with a Certificate Map Entry.
      * 
@@ -2216,11 +1925,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @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(); } @@ -2228,67 +1938,68 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Set of labels associated with a Certificate Map Entry.
      * 
* * map<string, string> labels = 4; */ - 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(); } /** - * - * *
      * Set of labels associated with a Certificate Map Entry.
      * 
* * map<string, string> labels = 4; */ - 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; } /** - * - * *
      * Set of labels associated with a Certificate Map Entry.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } /** - * - * *
      * A Hostname (FQDN, e.g. `example.com`) or a wildcard hostname expression
      * (`*.example.com`) for a set of hostnames with common suffix. Used as
@@ -2296,7 +2007,6 @@ public Builder putAllLabels(java.util.Map va
      * 
* * string hostname = 5; - * * @return Whether the hostname field is set. */ @java.lang.Override @@ -2304,8 +2014,6 @@ public boolean hasHostname() { return matchCase_ == 5; } /** - * - * *
      * A Hostname (FQDN, e.g. `example.com`) or a wildcard hostname expression
      * (`*.example.com`) for a set of hostnames with common suffix. Used as
@@ -2313,7 +2021,6 @@ public boolean hasHostname() {
      * 
* * string hostname = 5; - * * @return The hostname. */ @java.lang.Override @@ -2323,7 +2030,8 @@ public java.lang.String getHostname() { ref = match_; } if (!(ref instanceof java.lang.String)) { - com.google.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 (matchCase_ == 5) { match_ = s; @@ -2334,8 +2042,6 @@ public java.lang.String getHostname() { } } /** - * - * *
      * A Hostname (FQDN, e.g. `example.com`) or a wildcard hostname expression
      * (`*.example.com`) for a set of hostnames with common suffix. Used as
@@ -2343,18 +2049,19 @@ public java.lang.String getHostname() {
      * 
* * string hostname = 5; - * * @return The bytes for hostname. */ @java.lang.Override - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = ""; if (matchCase_ == 5) { ref = match_; } if (ref instanceof String) { - com.google.protobuf.ByteString 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 (matchCase_ == 5) { match_ = b; } @@ -2364,8 +2071,6 @@ public com.google.protobuf.ByteString getHostnameBytes() { } } /** - * - * *
      * A Hostname (FQDN, e.g. `example.com`) or a wildcard hostname expression
      * (`*.example.com`) for a set of hostnames with common suffix. Used as
@@ -2373,22 +2078,20 @@ public com.google.protobuf.ByteString getHostnameBytes() {
      * 
* * string hostname = 5; - * * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setHostname(java.lang.String value) { + public Builder setHostname( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - matchCase_ = 5; + throw new NullPointerException(); + } + matchCase_ = 5; match_ = value; onChanged(); return this; } /** - * - * *
      * A Hostname (FQDN, e.g. `example.com`) or a wildcard hostname expression
      * (`*.example.com`) for a set of hostnames with common suffix. Used as
@@ -2396,7 +2099,6 @@ public Builder setHostname(java.lang.String value) {
      * 
* * string hostname = 5; - * * @return This builder for chaining. */ public Builder clearHostname() { @@ -2408,8 +2110,6 @@ public Builder clearHostname() { return this; } /** - * - * *
      * A Hostname (FQDN, e.g. `example.com`) or a wildcard hostname expression
      * (`*.example.com`) for a set of hostnames with common suffix. Used as
@@ -2417,15 +2117,15 @@ public Builder clearHostname() {
      * 
* * string hostname = 5; - * * @param value The bytes for hostname to set. * @return This builder for chaining. */ - public Builder setHostnameBytes(com.google.protobuf.ByteString value) { + public Builder setHostnameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); matchCase_ = 5; match_ = value; onChanged(); @@ -2433,14 +2133,11 @@ public Builder setHostnameBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * A predefined matcher for particular cases, other than SNI selection.
      * 
* * .google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher matcher = 10; - * * @return Whether the matcher field is set. */ @java.lang.Override @@ -2448,14 +2145,11 @@ public boolean hasMatcher() { return matchCase_ == 10; } /** - * - * *
      * A predefined matcher for particular cases, other than SNI selection.
      * 
* * .google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher matcher = 10; - * * @return The enum numeric value on the wire for matcher. */ @java.lang.Override @@ -2466,14 +2160,11 @@ public int getMatcherValue() { return 0; } /** - * - * *
      * A predefined matcher for particular cases, other than SNI selection.
      * 
* * .google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher matcher = 10; - * * @param value The enum numeric value on the wire for matcher to set. * @return This builder for chaining. */ @@ -2484,43 +2175,33 @@ public Builder setMatcherValue(int value) { return this; } /** - * - * *
      * A predefined matcher for particular cases, other than SNI selection.
      * 
* * .google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher matcher = 10; - * * @return The matcher. */ @java.lang.Override public com.google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher getMatcher() { if (matchCase_ == 10) { @SuppressWarnings("deprecation") - com.google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher result = - com.google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher.valueOf( - (java.lang.Integer) match_); - return result == null - ? com.google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher.UNRECOGNIZED - : result; + com.google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher result = com.google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher.valueOf( + (java.lang.Integer) match_); + return result == null ? com.google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher.UNRECOGNIZED : result; } return com.google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher.MATCHER_UNSPECIFIED; } /** - * - * *
      * A predefined matcher for particular cases, other than SNI selection.
      * 
* * .google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher matcher = 10; - * * @param value The matcher to set. * @return This builder for chaining. */ - public Builder setMatcher( - com.google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher value) { + public Builder setMatcher(com.google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher value) { if (value == null) { throw new NullPointerException(); } @@ -2530,14 +2211,11 @@ public Builder setMatcher( return this; } /** - * - * *
      * A predefined matcher for particular cases, other than SNI selection.
      * 
* * .google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher matcher = 10; - * * @return This builder for chaining. */ public Builder clearMatcher() { @@ -2549,18 +2227,14 @@ public Builder clearMatcher() { return this; } - 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_ & 0x00000002) != 0)) { certificates_ = new com.google.protobuf.LazyStringArrayList(certificates_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * A set of Certificates defines for the given `hostname`. There can be
      * defined up to fifteen certificates in each Certificate Map Entry. Each
@@ -2568,15 +2242,13 @@ private void ensureCertificatesIsMutable() {
      * 
* * repeated string certificates = 7 [(.google.api.resource_reference) = { ... } - * * @return A list containing the certificates. */ - public com.google.protobuf.ProtocolStringList getCertificatesList() { + public com.google.protobuf.ProtocolStringList + getCertificatesList() { return certificates_.getUnmodifiableView(); } /** - * - * *
      * A set of Certificates defines for the given `hostname`. There can be
      * defined up to fifteen certificates in each Certificate Map Entry. Each
@@ -2584,15 +2256,12 @@ public com.google.protobuf.ProtocolStringList getCertificatesList() {
      * 
* * repeated string certificates = 7 [(.google.api.resource_reference) = { ... } - * * @return The count of certificates. */ public int getCertificatesCount() { return certificates_.size(); } /** - * - * *
      * A set of Certificates defines for the given `hostname`. There can be
      * defined up to fifteen certificates in each Certificate Map Entry. Each
@@ -2600,7 +2269,6 @@ public int getCertificatesCount() {
      * 
* * repeated string certificates = 7 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The certificates at the given index. */ @@ -2608,8 +2276,6 @@ public java.lang.String getCertificates(int index) { return certificates_.get(index); } /** - * - * *
      * A set of Certificates defines for the given `hostname`. There can be
      * defined up to fifteen certificates in each Certificate Map Entry. Each
@@ -2617,16 +2283,14 @@ public java.lang.String getCertificates(int index) {
      * 
* * repeated string certificates = 7 [(.google.api.resource_reference) = { ... } - * * @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); } /** - * - * *
      * A set of Certificates defines for the given `hostname`. There can be
      * defined up to fifteen certificates in each Certificate Map Entry. Each
@@ -2634,23 +2298,21 @@ public com.google.protobuf.ByteString getCertificatesBytes(int index) {
      * 
* * repeated string certificates = 7 [(.google.api.resource_reference) = { ... } - * * @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; } /** - * - * *
      * A set of Certificates defines for the given `hostname`. There can be
      * defined up to fifteen certificates in each Certificate Map Entry. Each
@@ -2658,22 +2320,20 @@ public Builder setCertificates(int index, java.lang.String value) {
      * 
* * repeated string certificates = 7 [(.google.api.resource_reference) = { ... } - * * @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; } /** - * - * *
      * A set of Certificates defines for the given `hostname`. There can be
      * defined up to fifteen certificates in each Certificate Map Entry. Each
@@ -2681,19 +2341,18 @@ public Builder addCertificates(java.lang.String value) {
      * 
* * repeated string certificates = 7 [(.google.api.resource_reference) = { ... } - * * @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; } /** - * - * *
      * A set of Certificates defines for the given `hostname`. There can be
      * defined up to fifteen certificates in each Certificate Map Entry. Each
@@ -2701,7 +2360,6 @@ public Builder addAllCertificates(java.lang.Iterable values) {
      * 
* * repeated string certificates = 7 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearCertificates() { @@ -2711,8 +2369,6 @@ public Builder clearCertificates() { return this; } /** - * - * *
      * A set of Certificates defines for the given `hostname`. There can be
      * defined up to fifteen certificates in each Certificate Map Entry. Each
@@ -2720,15 +2376,15 @@ public Builder clearCertificates() {
      * 
* * repeated string certificates = 7 [(.google.api.resource_reference) = { ... } - * * @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(); @@ -2737,75 +2393,51 @@ public Builder addCertificatesBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. A serving state of this Certificate Map Entry.
      * 
* - * - * .google.cloud.certificatemanager.v1.ServingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.ServingState 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. A serving state of this Certificate Map Entry.
      * 
* - * - * .google.cloud.certificatemanager.v1.ServingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.ServingState 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. A serving state of this Certificate Map Entry.
      * 
* - * - * .google.cloud.certificatemanager.v1.ServingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.ServingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.certificatemanager.v1.ServingState getState() { @SuppressWarnings("deprecation") - com.google.cloud.certificatemanager.v1.ServingState result = - com.google.cloud.certificatemanager.v1.ServingState.valueOf(state_); - return result == null - ? com.google.cloud.certificatemanager.v1.ServingState.UNRECOGNIZED - : result; + com.google.cloud.certificatemanager.v1.ServingState result = com.google.cloud.certificatemanager.v1.ServingState.valueOf(state_); + return result == null ? com.google.cloud.certificatemanager.v1.ServingState.UNRECOGNIZED : result; } /** - * - * *
      * Output only. A serving state of this Certificate Map Entry.
      * 
* - * - * .google.cloud.certificatemanager.v1.ServingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.ServingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -2813,33 +2445,28 @@ public Builder setState(com.google.cloud.certificatemanager.v1.ServingState valu if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. A serving state of this Certificate Map Entry.
      * 
* - * - * .google.cloud.certificatemanager.v1.ServingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.ServingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 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); } @@ -2849,12 +2476,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.CertificateMapEntry) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.CertificateMapEntry) private static final com.google.cloud.certificatemanager.v1.CertificateMapEntry DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.CertificateMapEntry(); } @@ -2863,16 +2490,27 @@ public static com.google.cloud.certificatemanager.v1.CertificateMapEntry getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CertificateMapEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CertificateMapEntry(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateMapEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2887,4 +2525,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.certificatemanager.v1.CertificateMapEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntryName.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntryName.java similarity index 100% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntryName.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntryName.java diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntryOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntryOrBuilder.java similarity index 78% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntryOrBuilder.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntryOrBuilder.java index ffc7eb9724bf..5574376304d0 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntryOrBuilder.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapEntryOrBuilder.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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; -public interface CertificateMapEntryOrBuilder - extends +public interface CertificateMapEntryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.CertificateMapEntry) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A user-defined name of the Certificate Map Entry. Certificate Map Entry
    * names must be unique globally and match pattern
@@ -33,13 +15,10 @@ public interface CertificateMapEntryOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * A user-defined name of the Certificate Map Entry. Certificate Map Entry
    * names must be unique globally and match pattern
@@ -47,115 +26,86 @@ public interface CertificateMapEntryOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * One or more paragraphs of text description of a certificate map entry.
    * 
* * string description = 9; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * One or more paragraphs of text description of a certificate map entry.
    * 
* * string description = 9; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The creation timestamp of a Certificate Map Entry.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The creation timestamp of a Certificate Map Entry.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The creation timestamp of a Certificate Map Entry.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The update timestamp of a Certificate Map Entry.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The update timestamp of a Certificate Map Entry.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The update timestamp of a Certificate Map Entry.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Set of labels associated with a Certificate Map Entry.
    * 
@@ -164,31 +114,30 @@ public interface CertificateMapEntryOrBuilder */ int getLabelsCount(); /** - * - * *
    * Set of labels associated with a Certificate Map Entry.
    * 
* * map<string, string> labels = 4; */ - 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(); /** - * - * *
    * Set of labels associated with a Certificate Map Entry.
    * 
* * map<string, string> labels = 4; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Set of labels associated with a Certificate Map Entry.
    * 
@@ -197,24 +146,22 @@ public interface CertificateMapEntryOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Set of labels associated with a Certificate Map Entry.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * A Hostname (FQDN, e.g. `example.com`) or a wildcard hostname expression
    * (`*.example.com`) for a set of hostnames with common suffix. Used as
@@ -222,13 +169,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string hostname = 5; - * * @return Whether the hostname field is set. */ boolean hasHostname(); /** - * - * *
    * A Hostname (FQDN, e.g. `example.com`) or a wildcard hostname expression
    * (`*.example.com`) for a set of hostnames with common suffix. Used as
@@ -236,13 +180,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string hostname = 5; - * * @return The hostname. */ java.lang.String getHostname(); /** - * - * *
    * A Hostname (FQDN, e.g. `example.com`) or a wildcard hostname expression
    * (`*.example.com`) for a set of hostnames with common suffix. Used as
@@ -250,51 +191,40 @@ java.lang.String getLabelsOrDefault(
    * 
* * string hostname = 5; - * * @return The bytes for hostname. */ - com.google.protobuf.ByteString getHostnameBytes(); + com.google.protobuf.ByteString + getHostnameBytes(); /** - * - * *
    * A predefined matcher for particular cases, other than SNI selection.
    * 
* * .google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher matcher = 10; - * * @return Whether the matcher field is set. */ boolean hasMatcher(); /** - * - * *
    * A predefined matcher for particular cases, other than SNI selection.
    * 
* * .google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher matcher = 10; - * * @return The enum numeric value on the wire for matcher. */ int getMatcherValue(); /** - * - * *
    * A predefined matcher for particular cases, other than SNI selection.
    * 
* * .google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher matcher = 10; - * * @return The matcher. */ com.google.cloud.certificatemanager.v1.CertificateMapEntry.Matcher getMatcher(); /** - * - * *
    * A set of Certificates defines for the given `hostname`. There can be
    * defined up to fifteen certificates in each Certificate Map Entry. Each
@@ -302,13 +232,11 @@ java.lang.String getLabelsOrDefault(
    * 
* * repeated string certificates = 7 [(.google.api.resource_reference) = { ... } - * * @return A list containing the certificates. */ - java.util.List getCertificatesList(); + java.util.List + getCertificatesList(); /** - * - * *
    * A set of Certificates defines for the given `hostname`. There can be
    * defined up to fifteen certificates in each Certificate Map Entry. Each
@@ -316,13 +244,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * repeated string certificates = 7 [(.google.api.resource_reference) = { ... } - * * @return The count of certificates. */ int getCertificatesCount(); /** - * - * *
    * A set of Certificates defines for the given `hostname`. There can be
    * defined up to fifteen certificates in each Certificate Map Entry. Each
@@ -330,14 +255,11 @@ java.lang.String getLabelsOrDefault(
    * 
* * repeated string certificates = 7 [(.google.api.resource_reference) = { ... } - * * @param index The index of the element to return. * @return The certificates at the given index. */ java.lang.String getCertificates(int index); /** - * - * *
    * A set of Certificates defines for the given `hostname`. There can be
    * defined up to fifteen certificates in each Certificate Map Entry. Each
@@ -345,37 +267,27 @@ java.lang.String getLabelsOrDefault(
    * 
* * repeated string certificates = 7 [(.google.api.resource_reference) = { ... } - * * @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); /** - * - * *
    * Output only. A serving state of this Certificate Map Entry.
    * 
* - * - * .google.cloud.certificatemanager.v1.ServingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.ServingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. A serving state of this Certificate Map Entry.
    * 
* - * - * .google.cloud.certificatemanager.v1.ServingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.ServingState state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.certificatemanager.v1.ServingState getState(); diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapName.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapName.java similarity index 100% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapName.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapName.java diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapOrBuilder.java similarity index 63% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapOrBuilder.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapOrBuilder.java index 77f27d32d39b..dcb7e9dc8543 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapOrBuilder.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateMapOrBuilder.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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; -public interface CertificateMapOrBuilder - extends +public interface CertificateMapOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.CertificateMap) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A user-defined name of the Certificate Map. Certificate Map names must be
    * unique globally and match pattern
@@ -33,13 +15,10 @@ public interface CertificateMapOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * A user-defined name of the Certificate Map. Certificate Map names must be
    * unique globally and match pattern
@@ -47,115 +26,86 @@ public interface CertificateMapOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * One or more paragraphs of text description of a certificate map.
    * 
* * string description = 5; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * One or more paragraphs of text description of a certificate map.
    * 
* * string description = 5; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The creation timestamp of a Certificate Map.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The creation timestamp of a Certificate Map.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The creation timestamp of a Certificate Map.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The update timestamp of a Certificate Map.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The update timestamp of a Certificate Map.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The update timestamp of a Certificate Map.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Set of labels associated with a Certificate Map.
    * 
@@ -164,31 +114,30 @@ public interface CertificateMapOrBuilder */ int getLabelsCount(); /** - * - * *
    * Set of labels associated with a Certificate Map.
    * 
* * map<string, string> labels = 3; */ - 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(); /** - * - * *
    * Set of labels associated with a Certificate Map.
    * 
* * map<string, string> labels = 3; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Set of labels associated with a Certificate Map.
    * 
@@ -197,82 +146,71 @@ public interface CertificateMapOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Set of labels associated with a Certificate Map.
    * 
* * map<string, string> labels = 3; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Output only. A list of GCLB targets which use this Certificate Map.
+   * A Target Proxy is only present on this list if it's attached to a
+   * Forwarding Rule.
    * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getGclbTargetsList(); /** - * - * *
    * Output only. A list of GCLB targets which use this Certificate Map.
+   * A Target Proxy is only present on this list if it's attached to a
+   * Forwarding Rule.
    * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.certificatemanager.v1.CertificateMap.GclbTarget getGclbTargets(int index); /** - * - * *
    * Output only. A list of GCLB targets which use this Certificate Map.
+   * A Target Proxy is only present on this list if it's attached to a
+   * Forwarding Rule.
    * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getGclbTargetsCount(); /** - * - * *
    * Output only. A list of GCLB targets which use this Certificate Map.
+   * A Target Proxy is only present on this list if it's attached to a
+   * Forwarding Rule.
    * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List< - ? extends com.google.cloud.certificatemanager.v1.CertificateMap.GclbTargetOrBuilder> + java.util.List getGclbTargetsOrBuilderList(); /** - * - * *
    * Output only. A list of GCLB targets which use this Certificate Map.
+   * A Target Proxy is only present on this list if it's attached to a
+   * Forwarding Rule.
    * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap.GclbTarget gclb_targets = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.certificatemanager.v1.CertificateMap.GclbTargetOrBuilder getGclbTargetsOrBuilder( int index); diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateName.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateName.java similarity index 100% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateName.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateName.java diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateOrBuilder.java similarity index 69% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateOrBuilder.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateOrBuilder.java index 440c6276e458..82e424e77b03 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateOrBuilder.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateOrBuilder.java @@ -1,159 +1,109 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; -public interface CertificateOrBuilder - extends +public interface CertificateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.Certificate) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A user-defined name of the certificate. Certificate names must be unique
    * globally and match pattern `projects/*/locations/*/certificates/*`.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * A user-defined name of the certificate. Certificate names must be unique
    * globally and match pattern `projects/*/locations/*/certificates/*`.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * One or more paragraphs of text description of a certificate.
    * 
* * string description = 8; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * One or more paragraphs of text description of a certificate.
    * 
* * string description = 8; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The creation timestamp of a Certificate.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The creation timestamp of a Certificate.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The creation timestamp of a Certificate.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The last update timestamp of a Certificate.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The last update timestamp of a Certificate.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The last update timestamp of a Certificate.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Set of labels associated with a Certificate.
    * 
@@ -162,31 +112,30 @@ public interface CertificateOrBuilder */ int getLabelsCount(); /** - * - * *
    * Set of labels associated with a Certificate.
    * 
* * map<string, string> labels = 4; */ - 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(); /** - * - * *
    * Set of labels associated with a Certificate.
    * 
* * map<string, string> labels = 4; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Set of labels associated with a Certificate.
    * 
@@ -195,247 +144,190 @@ 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); /** - * - * *
    * Set of labels associated with a Certificate.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * If set, defines data of a self-managed certificate.
    * 
* - * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; - * - * + * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; * @return Whether the selfManaged field is set. */ boolean hasSelfManaged(); /** - * - * *
    * If set, defines data of a self-managed certificate.
    * 
* - * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; - * - * + * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; * @return The selfManaged. */ com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate getSelfManaged(); /** - * - * *
    * If set, defines data of a self-managed certificate.
    * 
* - * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; - * + * .google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificate self_managed = 5; */ - com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificateOrBuilder - getSelfManagedOrBuilder(); + com.google.cloud.certificatemanager.v1.Certificate.SelfManagedCertificateOrBuilder getSelfManagedOrBuilder(); /** - * - * *
    * If set, contains configuration and state of a managed certificate.
    * 
* * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11; - * * @return Whether the managed field is set. */ boolean hasManaged(); /** - * - * *
    * If set, contains configuration and state of a managed certificate.
    * 
* * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11; - * * @return The managed. */ com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificate getManaged(); /** - * - * *
    * If set, contains configuration and state of a managed certificate.
    * 
* * .google.cloud.certificatemanager.v1.Certificate.ManagedCertificate managed = 11; */ - com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificateOrBuilder - getManagedOrBuilder(); + com.google.cloud.certificatemanager.v1.Certificate.ManagedCertificateOrBuilder getManagedOrBuilder(); /** - * - * *
-   * Output only. The list of Subject Alternative Names of dnsName type defined in the
-   * certificate (see RFC 5280 4.2.1.6).
-   * Managed certificates that haven't been provisioned yet have this field
-   * populated with a value of the managed.domains field.
+   * Output only. The list of Subject Alternative Names of dnsName type defined
+   * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+   * haven't been provisioned yet have this field populated with a value of the
+   * managed.domains field.
    * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return A list containing the sanDnsnames. */ - java.util.List getSanDnsnamesList(); + java.util.List + getSanDnsnamesList(); /** - * - * *
-   * Output only. The list of Subject Alternative Names of dnsName type defined in the
-   * certificate (see RFC 5280 4.2.1.6).
-   * Managed certificates that haven't been provisioned yet have this field
-   * populated with a value of the managed.domains field.
+   * Output only. The list of Subject Alternative Names of dnsName type defined
+   * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+   * haven't been provisioned yet have this field populated with a value of the
+   * managed.domains field.
    * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The count of sanDnsnames. */ int getSanDnsnamesCount(); /** - * - * *
-   * Output only. The list of Subject Alternative Names of dnsName type defined in the
-   * certificate (see RFC 5280 4.2.1.6).
-   * Managed certificates that haven't been provisioned yet have this field
-   * populated with a value of the managed.domains field.
+   * Output only. The list of Subject Alternative Names of dnsName type defined
+   * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+   * haven't been provisioned yet have this field populated with a value of the
+   * managed.domains field.
    * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the element to return. * @return The sanDnsnames at the given index. */ java.lang.String getSanDnsnames(int index); /** - * - * *
-   * Output only. The list of Subject Alternative Names of dnsName type defined in the
-   * certificate (see RFC 5280 4.2.1.6).
-   * Managed certificates that haven't been provisioned yet have this field
-   * populated with a value of the managed.domains field.
+   * Output only. The list of Subject Alternative Names of dnsName type defined
+   * in the certificate (see RFC 5280 4.2.1.6). Managed certificates that
+   * haven't been provisioned yet have this field populated with a value of the
+   * managed.domains field.
    * 
* * repeated string san_dnsnames = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param index The index of the value to return. * @return The bytes of the sanDnsnames at the given index. */ - com.google.protobuf.ByteString getSanDnsnamesBytes(int index); + com.google.protobuf.ByteString + getSanDnsnamesBytes(int index); /** - * - * *
    * Output only. The PEM-encoded certificate chain.
    * 
* * string pem_certificate = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pemCertificate. */ java.lang.String getPemCertificate(); /** - * - * *
    * Output only. The PEM-encoded certificate chain.
    * 
* * 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. The expiry timestamp of a Certificate.
    * 
* - * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Output only. The expiry timestamp of a Certificate.
    * 
* - * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Output only. The expiry timestamp of a Certificate.
    * 
* - * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * *
    * Immutable. The scope of the certificate.
    * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for scope. */ int getScopeValue(); /** - * - * *
    * Immutable. The scope of the certificate.
    * 
* - * - * .google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.certificatemanager.v1.Certificate.Scope scope = 12 [(.google.api.field_behavior) = IMMUTABLE]; * @return The scope. */ com.google.cloud.certificatemanager.v1.Certificate.Scope getScope(); diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateIssuanceConfigRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateIssuanceConfigRequest.java new file mode 100644 index 000000000000..4bcc61f06609 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateIssuanceConfigRequest.java @@ -0,0 +1,976 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +/** + *
+ * Request for the `CreateCertificateIssuanceConfig` method.
+ * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest} + */ +public final class CreateCertificateIssuanceConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest) + CreateCertificateIssuanceConfigRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateCertificateIssuanceConfigRequest.newBuilder() to construct. + private CreateCertificateIssuanceConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateCertificateIssuanceConfigRequest() { + parent_ = ""; + certificateIssuanceConfigId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateCertificateIssuanceConfigRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_CreateCertificateIssuanceConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_CreateCertificateIssuanceConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest.class, com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * Required. The parent resource of the certificate issuance config. Must be
+   * in the format `projects/*/locations/*`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. The parent resource of the certificate issuance config. Must be
+   * in the format `projects/*/locations/*`.
+   * 
+ * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CERTIFICATE_ISSUANCE_CONFIG_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object certificateIssuanceConfigId_; + /** + *
+   * Required. A user-provided name of the certificate config.
+   * 
+ * + * string certificate_issuance_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The certificateIssuanceConfigId. + */ + @java.lang.Override + public java.lang.String getCertificateIssuanceConfigId() { + java.lang.Object ref = certificateIssuanceConfigId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + certificateIssuanceConfigId_ = s; + return s; + } + } + /** + *
+   * Required. A user-provided name of the certificate config.
+   * 
+ * + * string certificate_issuance_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for certificateIssuanceConfigId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCertificateIssuanceConfigIdBytes() { + java.lang.Object ref = certificateIssuanceConfigId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + certificateIssuanceConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CERTIFICATE_ISSUANCE_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificateIssuanceConfig_; + /** + *
+   * Required. A definition of the certificate issuance config to create.
+   * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the certificateIssuanceConfig field is set. + */ + @java.lang.Override + public boolean hasCertificateIssuanceConfig() { + return certificateIssuanceConfig_ != null; + } + /** + *
+   * Required. A definition of the certificate issuance config to create.
+   * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The certificateIssuanceConfig. + */ + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig getCertificateIssuanceConfig() { + return certificateIssuanceConfig_ == null ? com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.getDefaultInstance() : certificateIssuanceConfig_; + } + /** + *
+   * Required. A definition of the certificate issuance config to create.
+   * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder getCertificateIssuanceConfigOrBuilder() { + return getCertificateIssuanceConfig(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateIssuanceConfigId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, certificateIssuanceConfigId_); + } + if (certificateIssuanceConfig_ != null) { + output.writeMessage(3, getCertificateIssuanceConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateIssuanceConfigId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, certificateIssuanceConfigId_); + } + if (certificateIssuanceConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCertificateIssuanceConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest other = (com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getCertificateIssuanceConfigId() + .equals(other.getCertificateIssuanceConfigId())) return false; + if (hasCertificateIssuanceConfig() != other.hasCertificateIssuanceConfig()) return false; + if (hasCertificateIssuanceConfig()) { + if (!getCertificateIssuanceConfig() + .equals(other.getCertificateIssuanceConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + CERTIFICATE_ISSUANCE_CONFIG_ID_FIELD_NUMBER; + hash = (53 * hash) + getCertificateIssuanceConfigId().hashCode(); + if (hasCertificateIssuanceConfig()) { + hash = (37 * hash) + CERTIFICATE_ISSUANCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCertificateIssuanceConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest 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.certificatemanager.v1.CreateCertificateIssuanceConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest 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.certificatemanager.v1.CreateCertificateIssuanceConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the `CreateCertificateIssuanceConfig` method.
+   * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest) + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_CreateCertificateIssuanceConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_CreateCertificateIssuanceConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest.class, com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + certificateIssuanceConfigId_ = ""; + + if (certificateIssuanceConfigBuilder_ == null) { + certificateIssuanceConfig_ = null; + } else { + certificateIssuanceConfig_ = null; + certificateIssuanceConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_CreateCertificateIssuanceConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest build() { + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest buildPartial() { + com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest result = new com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest(this); + result.parent_ = parent_; + result.certificateIssuanceConfigId_ = certificateIssuanceConfigId_; + if (certificateIssuanceConfigBuilder_ == null) { + result.certificateIssuanceConfig_ = certificateIssuanceConfig_; + } else { + result.certificateIssuanceConfig_ = certificateIssuanceConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest) { + return mergeFrom((com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest other) { + if (other == com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getCertificateIssuanceConfigId().isEmpty()) { + certificateIssuanceConfigId_ = other.certificateIssuanceConfigId_; + onChanged(); + } + if (other.hasCertificateIssuanceConfig()) { + mergeCertificateIssuanceConfig(other.getCertificateIssuanceConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + certificateIssuanceConfigId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + input.readMessage( + getCertificateIssuanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The parent resource of the certificate issuance config. Must be
+     * in the format `projects/*/locations/*`.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The parent resource of the certificate issuance config. Must be
+     * in the format `projects/*/locations/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The parent resource of the certificate issuance config. Must be
+     * in the format `projects/*/locations/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The parent resource of the certificate issuance config. Must be
+     * in the format `projects/*/locations/*`.
+     * 
+ * + * 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 parent resource of the certificate issuance config. Must be
+     * in the format `projects/*/locations/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private java.lang.Object certificateIssuanceConfigId_ = ""; + /** + *
+     * Required. A user-provided name of the certificate config.
+     * 
+ * + * string certificate_issuance_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The certificateIssuanceConfigId. + */ + public java.lang.String getCertificateIssuanceConfigId() { + java.lang.Object ref = certificateIssuanceConfigId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + certificateIssuanceConfigId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. A user-provided name of the certificate config.
+     * 
+ * + * string certificate_issuance_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for certificateIssuanceConfigId. + */ + public com.google.protobuf.ByteString + getCertificateIssuanceConfigIdBytes() { + java.lang.Object ref = certificateIssuanceConfigId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + certificateIssuanceConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. A user-provided name of the certificate config.
+     * 
+ * + * string certificate_issuance_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The certificateIssuanceConfigId to set. + * @return This builder for chaining. + */ + public Builder setCertificateIssuanceConfigId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + certificateIssuanceConfigId_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. A user-provided name of the certificate config.
+     * 
+ * + * string certificate_issuance_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearCertificateIssuanceConfigId() { + + certificateIssuanceConfigId_ = getDefaultInstance().getCertificateIssuanceConfigId(); + onChanged(); + return this; + } + /** + *
+     * Required. A user-provided name of the certificate config.
+     * 
+ * + * string certificate_issuance_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bytes for certificateIssuanceConfigId to set. + * @return This builder for chaining. + */ + public Builder setCertificateIssuanceConfigIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + certificateIssuanceConfigId_ = value; + onChanged(); + return this; + } + + private com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificateIssuanceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder> certificateIssuanceConfigBuilder_; + /** + *
+     * Required. A definition of the certificate issuance config to create.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the certificateIssuanceConfig field is set. + */ + public boolean hasCertificateIssuanceConfig() { + return certificateIssuanceConfigBuilder_ != null || certificateIssuanceConfig_ != null; + } + /** + *
+     * Required. A definition of the certificate issuance config to create.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The certificateIssuanceConfig. + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig getCertificateIssuanceConfig() { + if (certificateIssuanceConfigBuilder_ == null) { + return certificateIssuanceConfig_ == null ? com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.getDefaultInstance() : certificateIssuanceConfig_; + } else { + return certificateIssuanceConfigBuilder_.getMessage(); + } + } + /** + *
+     * Required. A definition of the certificate issuance config to create.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setCertificateIssuanceConfig(com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig value) { + if (certificateIssuanceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + certificateIssuanceConfig_ = value; + onChanged(); + } else { + certificateIssuanceConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. A definition of the certificate issuance config to create.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setCertificateIssuanceConfig( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder builderForValue) { + if (certificateIssuanceConfigBuilder_ == null) { + certificateIssuanceConfig_ = builderForValue.build(); + onChanged(); + } else { + certificateIssuanceConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. A definition of the certificate issuance config to create.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeCertificateIssuanceConfig(com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig value) { + if (certificateIssuanceConfigBuilder_ == null) { + if (certificateIssuanceConfig_ != null) { + certificateIssuanceConfig_ = + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.newBuilder(certificateIssuanceConfig_).mergeFrom(value).buildPartial(); + } else { + certificateIssuanceConfig_ = value; + } + onChanged(); + } else { + certificateIssuanceConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. A definition of the certificate issuance config to create.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearCertificateIssuanceConfig() { + if (certificateIssuanceConfigBuilder_ == null) { + certificateIssuanceConfig_ = null; + onChanged(); + } else { + certificateIssuanceConfig_ = null; + certificateIssuanceConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. A definition of the certificate issuance config to create.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder getCertificateIssuanceConfigBuilder() { + + onChanged(); + return getCertificateIssuanceConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Required. A definition of the certificate issuance config to create.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder getCertificateIssuanceConfigOrBuilder() { + if (certificateIssuanceConfigBuilder_ != null) { + return certificateIssuanceConfigBuilder_.getMessageOrBuilder(); + } else { + return certificateIssuanceConfig_ == null ? + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.getDefaultInstance() : certificateIssuanceConfig_; + } + } + /** + *
+     * Required. A definition of the certificate issuance config to create.
+     * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder> + getCertificateIssuanceConfigFieldBuilder() { + if (certificateIssuanceConfigBuilder_ == null) { + certificateIssuanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder>( + getCertificateIssuanceConfig(), + getParentForChildren(), + isClean()); + certificateIssuanceConfig_ = null; + } + return certificateIssuanceConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest) + private static final com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest(); + } + + public static com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCertificateIssuanceConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateIssuanceConfigRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateIssuanceConfigRequestOrBuilder.java new file mode 100644 index 000000000000..75449733e45c --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateIssuanceConfigRequestOrBuilder.java @@ -0,0 +1,78 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +public interface CreateCertificateIssuanceConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent resource of the certificate issuance config. Must be
+   * in the format `projects/*/locations/*`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent resource of the certificate issuance config. Must be
+   * in the format `projects/*/locations/*`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. A user-provided name of the certificate config.
+   * 
+ * + * string certificate_issuance_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The certificateIssuanceConfigId. + */ + java.lang.String getCertificateIssuanceConfigId(); + /** + *
+   * Required. A user-provided name of the certificate config.
+   * 
+ * + * string certificate_issuance_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for certificateIssuanceConfigId. + */ + com.google.protobuf.ByteString + getCertificateIssuanceConfigIdBytes(); + + /** + *
+   * Required. A definition of the certificate issuance config to create.
+   * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the certificateIssuanceConfig field is set. + */ + boolean hasCertificateIssuanceConfig(); + /** + *
+   * Required. A definition of the certificate issuance config to create.
+   * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The certificateIssuanceConfig. + */ + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig getCertificateIssuanceConfig(); + /** + *
+   * Required. A definition of the certificate issuance config to create.
+   * 
+ * + * .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder getCertificateIssuanceConfigOrBuilder(); +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapEntryRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapEntryRequest.java similarity index 58% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapEntryRequest.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapEntryRequest.java index d22299dd9625..27ce20c5464a 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapEntryRequest.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapEntryRequest.java @@ -1,43 +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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Request for the `CreateCertificateMapEntry` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest} */ -public final class CreateCertificateMapEntryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateCertificateMapEntryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest) CreateCertificateMapEntryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateCertificateMapEntryRequest.newBuilder() to construct. - private CreateCertificateMapEntryRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateCertificateMapEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateCertificateMapEntryRequest() { parent_ = ""; certificateMapEntryId_ = ""; @@ -45,114 +26,38 @@ private CreateCertificateMapEntryRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateCertificateMapEntryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private CreateCertificateMapEntryRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - certificateMapEntryId_ = s; - break; - } - case 26: - { - com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder subBuilder = null; - if (certificateMapEntry_ != null) { - subBuilder = certificateMapEntry_.toBuilder(); - } - certificateMapEntry_ = - input.readMessage( - com.google.cloud.certificatemanager.v1.CertificateMapEntry.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificateMapEntry_); - certificateMapEntry_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapEntryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapEntryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapEntryRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapEntryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest.class, - com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest.Builder.class); + com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest.class, com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource of the certificate map entry. Must be in the
    * format `projects/*/locations/*/certificateMaps/*`.
    * 
* - * - * string parent = 1 [(.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 @@ -161,32 +66,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource of the certificate map entry. Must be in the
    * format `projects/*/locations/*/certificateMaps/*`.
    * 
* - * - * string parent = 1 [(.google.api.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 { @@ -197,14 +100,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CERTIFICATE_MAP_ENTRY_ID_FIELD_NUMBER = 2; private volatile java.lang.Object certificateMapEntryId_; /** - * - * *
    * Required. A user-provided name of the certificate map entry.
    * 
* * string certificate_map_entry_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The certificateMapEntryId. */ @java.lang.Override @@ -213,29 +113,29 @@ public java.lang.String getCertificateMapEntryId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateMapEntryId_ = s; return s; } } /** - * - * *
    * Required. A user-provided name of the certificate map entry.
    * 
* * string certificate_map_entry_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for certificateMapEntryId. */ @java.lang.Override - public com.google.protobuf.ByteString getCertificateMapEntryIdBytes() { + public com.google.protobuf.ByteString + getCertificateMapEntryIdBytes() { java.lang.Object ref = certificateMapEntryId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); certificateMapEntryId_ = b; return b; } else { @@ -246,16 +146,11 @@ public com.google.protobuf.ByteString getCertificateMapEntryIdBytes() { public static final int CERTIFICATE_MAP_ENTRY_FIELD_NUMBER = 3; private com.google.cloud.certificatemanager.v1.CertificateMapEntry certificateMapEntry_; /** - * - * *
    * Required. A definition of the certificate map entry to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateMapEntry field is set. */ @java.lang.Override @@ -263,43 +158,30 @@ public boolean hasCertificateMapEntry() { return certificateMapEntry_ != null; } /** - * - * *
    * Required. A definition of the certificate map entry to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateMapEntry. */ @java.lang.Override public com.google.cloud.certificatemanager.v1.CertificateMapEntry getCertificateMapEntry() { - return certificateMapEntry_ == null - ? com.google.cloud.certificatemanager.v1.CertificateMapEntry.getDefaultInstance() - : certificateMapEntry_; + return certificateMapEntry_ == null ? com.google.cloud.certificatemanager.v1.CertificateMapEntry.getDefaultInstance() : certificateMapEntry_; } /** - * - * *
    * Required. A definition of the certificate map entry to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder - getCertificateMapEntryOrBuilder() { + public com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder getCertificateMapEntryOrBuilder() { return getCertificateMapEntry(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -311,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -321,7 +204,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (certificateMapEntry_ != null) { output.writeMessage(3, getCertificateMapEntry()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -337,9 +220,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, certificateMapEntryId_); } if (certificateMapEntry_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCertificateMapEntry()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCertificateMapEntry()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -347,21 +231,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.certificatemanager.v1.CreateCertificateMapEntryRequest)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest other = - (com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest) obj; + com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest other = (com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getCertificateMapEntryId().equals(other.getCertificateMapEntryId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getCertificateMapEntryId() + .equals(other.getCertificateMapEntryId())) return false; if (hasCertificateMapEntry() != other.hasCertificateMapEntry()) return false; if (hasCertificateMapEntry()) { - if (!getCertificateMapEntry().equals(other.getCertificateMapEntry())) return false; + if (!getCertificateMapEntry() + .equals(other.getCertificateMapEntry())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -380,152 +266,135 @@ public int hashCode() { hash = (37 * hash) + CERTIFICATE_MAP_ENTRY_FIELD_NUMBER; hash = (53 * hash) + getCertificateMapEntry().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `CreateCertificateMapEntry` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest) com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapEntryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapEntryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapEntryRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapEntryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest.class, - com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest.Builder - .class); + com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest.class, com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest.Builder.class); } - // Construct using - // com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest.newBuilder() + // Construct using com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -543,22 +412,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapEntryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapEntryRequest_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest - getDefaultInstanceForType() { - return com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest - .getDefaultInstance(); + public com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest build() { - com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest result = - buildPartial(); + com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -567,8 +433,7 @@ public com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest b @java.lang.Override public com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest buildPartial() { - com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest result = - new com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest(this); + com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest result = new com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest(this); result.parent_ = parent_; result.certificateMapEntryId_ = certificateMapEntryId_; if (certificateMapEntryBuilder_ == null) { @@ -584,52 +449,46 @@ public com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest 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.certificatemanager.v1.CreateCertificateMapEntryRequest) { - return mergeFrom( - (com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest) other); + if (other instanceof com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest) { + return mergeFrom((com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest other) { - if (other - == com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest other) { + if (other == com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -641,7 +500,7 @@ public Builder mergeFrom( if (other.hasCertificateMapEntry()) { mergeCertificateMapEntry(other.getCertificateMapEntry()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -656,41 +515,65 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + certificateMapEntryId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + input.readMessage( + getCertificateMapEntryFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource of the certificate map entry. Must be in the
      * format `projects/*/locations/*/certificateMaps/*`.
      * 
* - * - * string parent = 1 [(.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; @@ -699,24 +582,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource of the certificate map entry. Must be in the
      * format `projects/*/locations/*/certificateMaps/*`.
      * 
* - * - * string parent = 1 [(.google.api.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 { @@ -724,70 +604,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource of the certificate map entry. Must be in the
      * format `projects/*/locations/*/certificateMaps/*`.
      * 
* - * - * 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 parent resource of the certificate map entry. Must be in the
      * format `projects/*/locations/*/certificateMaps/*`.
      * 
* - * - * string 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 parent resource of the certificate map entry. Must be in the
      * format `projects/*/locations/*/certificateMaps/*`.
      * 
* - * - * 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,20 +662,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object certificateMapEntryId_ = ""; /** - * - * *
      * Required. A user-provided name of the certificate map entry.
      * 
* * string certificate_map_entry_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The certificateMapEntryId. */ public java.lang.String getCertificateMapEntryId() { java.lang.Object ref = certificateMapEntryId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateMapEntryId_ = s; return s; @@ -817,21 +682,20 @@ public java.lang.String getCertificateMapEntryId() { } } /** - * - * *
      * Required. A user-provided name of the certificate map entry.
      * 
* * string certificate_map_entry_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for certificateMapEntryId. */ - public com.google.protobuf.ByteString getCertificateMapEntryIdBytes() { + public com.google.protobuf.ByteString + getCertificateMapEntryIdBytes() { java.lang.Object ref = certificateMapEntryId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); certificateMapEntryId_ = b; return b; } else { @@ -839,61 +703,54 @@ public com.google.protobuf.ByteString getCertificateMapEntryIdBytes() { } } /** - * - * *
      * Required. A user-provided name of the certificate map entry.
      * 
* * string certificate_map_entry_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The certificateMapEntryId to set. * @return This builder for chaining. */ - public Builder setCertificateMapEntryId(java.lang.String value) { + public Builder setCertificateMapEntryId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + certificateMapEntryId_ = value; onChanged(); return this; } /** - * - * *
      * Required. A user-provided name of the certificate map entry.
      * 
* * string certificate_map_entry_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCertificateMapEntryId() { - + certificateMapEntryId_ = getDefaultInstance().getCertificateMapEntryId(); onChanged(); return this; } /** - * - * *
      * Required. A user-provided name of the certificate map entry.
      * 
* * string certificate_map_entry_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for certificateMapEntryId to set. * @return This builder for chaining. */ - public Builder setCertificateMapEntryIdBytes(com.google.protobuf.ByteString value) { + public Builder setCertificateMapEntryIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + certificateMapEntryId_ = value; onChanged(); return this; @@ -901,61 +758,41 @@ public Builder setCertificateMapEntryIdBytes(com.google.protobuf.ByteString valu private com.google.cloud.certificatemanager.v1.CertificateMapEntry certificateMapEntry_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMapEntry, - com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder, - com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder> - certificateMapEntryBuilder_; + com.google.cloud.certificatemanager.v1.CertificateMapEntry, com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder, com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder> certificateMapEntryBuilder_; /** - * - * *
      * Required. A definition of the certificate map entry to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateMapEntry field is set. */ public boolean hasCertificateMapEntry() { return certificateMapEntryBuilder_ != null || certificateMapEntry_ != null; } /** - * - * *
      * Required. A definition of the certificate map entry to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateMapEntry. */ public com.google.cloud.certificatemanager.v1.CertificateMapEntry getCertificateMapEntry() { if (certificateMapEntryBuilder_ == null) { - return certificateMapEntry_ == null - ? com.google.cloud.certificatemanager.v1.CertificateMapEntry.getDefaultInstance() - : certificateMapEntry_; + return certificateMapEntry_ == null ? com.google.cloud.certificatemanager.v1.CertificateMapEntry.getDefaultInstance() : certificateMapEntry_; } else { return certificateMapEntryBuilder_.getMessage(); } } /** - * - * *
      * Required. A definition of the certificate map entry to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCertificateMapEntry( - com.google.cloud.certificatemanager.v1.CertificateMapEntry value) { + public Builder setCertificateMapEntry(com.google.cloud.certificatemanager.v1.CertificateMapEntry value) { if (certificateMapEntryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -969,15 +806,11 @@ public Builder setCertificateMapEntry( return this; } /** - * - * *
      * Required. A definition of the certificate map entry to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificateMapEntry( com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder builderForValue) { @@ -991,25 +824,17 @@ public Builder setCertificateMapEntry( return this; } /** - * - * *
      * Required. A definition of the certificate map entry to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeCertificateMapEntry( - com.google.cloud.certificatemanager.v1.CertificateMapEntry value) { + public Builder mergeCertificateMapEntry(com.google.cloud.certificatemanager.v1.CertificateMapEntry value) { if (certificateMapEntryBuilder_ == null) { if (certificateMapEntry_ != null) { certificateMapEntry_ = - com.google.cloud.certificatemanager.v1.CertificateMapEntry.newBuilder( - certificateMapEntry_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.certificatemanager.v1.CertificateMapEntry.newBuilder(certificateMapEntry_).mergeFrom(value).buildPartial(); } else { certificateMapEntry_ = value; } @@ -1021,15 +846,11 @@ public Builder mergeCertificateMapEntry( return this; } /** - * - * *
      * Required. A definition of the certificate map entry to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCertificateMapEntry() { if (certificateMapEntryBuilder_ == null) { @@ -1043,73 +864,55 @@ public Builder clearCertificateMapEntry() { return this; } /** - * - * *
      * Required. A definition of the certificate map entry to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder - getCertificateMapEntryBuilder() { - + public com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder getCertificateMapEntryBuilder() { + onChanged(); return getCertificateMapEntryFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A definition of the certificate map entry to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder - getCertificateMapEntryOrBuilder() { + public com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder getCertificateMapEntryOrBuilder() { if (certificateMapEntryBuilder_ != null) { return certificateMapEntryBuilder_.getMessageOrBuilder(); } else { - return certificateMapEntry_ == null - ? com.google.cloud.certificatemanager.v1.CertificateMapEntry.getDefaultInstance() - : certificateMapEntry_; + return certificateMapEntry_ == null ? + com.google.cloud.certificatemanager.v1.CertificateMapEntry.getDefaultInstance() : certificateMapEntry_; } } /** - * - * *
      * Required. A definition of the certificate map entry to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMapEntry, - com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder, - com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder> + com.google.cloud.certificatemanager.v1.CertificateMapEntry, com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder, com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder> getCertificateMapEntryFieldBuilder() { if (certificateMapEntryBuilder_ == null) { - certificateMapEntryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMapEntry, - com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder, - com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder>( - getCertificateMapEntry(), getParentForChildren(), isClean()); + certificateMapEntryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateMapEntry, com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder, com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder>( + getCertificateMapEntry(), + getParentForChildren(), + isClean()); certificateMapEntry_ = null; } return certificateMapEntryBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1119,33 +922,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest) - private static final com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest(); + DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest(); } - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCertificateMapEntryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCertificateMapEntryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCertificateMapEntryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1157,8 +968,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapEntryRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapEntryRequestOrBuilder.java similarity index 54% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapEntryRequestOrBuilder.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapEntryRequestOrBuilder.java index 4c7de283fe65..bebd865e8848 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapEntryRequestOrBuilder.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapEntryRequestOrBuilder.java @@ -1,123 +1,78 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; -public interface CreateCertificateMapEntryRequestOrBuilder - extends +public interface CreateCertificateMapEntryRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource of the certificate map entry. Must be in the
    * format `projects/*/locations/*/certificateMaps/*`.
    * 
* - * - * string parent = 1 [(.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 parent resource of the certificate map entry. Must be in the
    * format `projects/*/locations/*/certificateMaps/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. A user-provided name of the certificate map entry.
    * 
* * string certificate_map_entry_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The certificateMapEntryId. */ java.lang.String getCertificateMapEntryId(); /** - * - * *
    * Required. A user-provided name of the certificate map entry.
    * 
* * string certificate_map_entry_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for certificateMapEntryId. */ - com.google.protobuf.ByteString getCertificateMapEntryIdBytes(); + com.google.protobuf.ByteString + getCertificateMapEntryIdBytes(); /** - * - * *
    * Required. A definition of the certificate map entry to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateMapEntry field is set. */ boolean hasCertificateMapEntry(); /** - * - * *
    * Required. A definition of the certificate map entry to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateMapEntry. */ com.google.cloud.certificatemanager.v1.CertificateMapEntry getCertificateMapEntry(); /** - * - * *
    * Required. A definition of the certificate map entry to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 3 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder - getCertificateMapEntryOrBuilder(); + com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder getCertificateMapEntryOrBuilder(); } diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapRequest.java similarity index 59% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapRequest.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapRequest.java index 2c676c5f55bb..a52b32fc752f 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapRequest.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapRequest.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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Request for the `CreateCertificateMap` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.CreateCertificateMapRequest} */ -public final class CreateCertificateMapRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateCertificateMapRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.CreateCertificateMapRequest) CreateCertificateMapRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateCertificateMapRequest.newBuilder() to construct. private CreateCertificateMapRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateCertificateMapRequest() { parent_ = ""; certificateMapId_ = ""; @@ -44,114 +26,38 @@ private CreateCertificateMapRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateCertificateMapRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private CreateCertificateMapRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - certificateMapId_ = s; - break; - } - case 26: - { - com.google.cloud.certificatemanager.v1.CertificateMap.Builder subBuilder = null; - if (certificateMap_ != null) { - subBuilder = certificateMap_.toBuilder(); - } - certificateMap_ = - input.readMessage( - com.google.cloud.certificatemanager.v1.CertificateMap.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificateMap_); - certificateMap_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest.class, - com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest.Builder.class); + com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest.class, com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource of the certificate map. Must be 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 @@ -160,32 +66,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource of the certificate map. Must be 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 { @@ -196,14 +100,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CERTIFICATE_MAP_ID_FIELD_NUMBER = 2; private volatile java.lang.Object certificateMapId_; /** - * - * *
    * Required. A user-provided name of the certificate map.
    * 
* * string certificate_map_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The certificateMapId. */ @java.lang.Override @@ -212,29 +113,29 @@ public java.lang.String getCertificateMapId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateMapId_ = s; return s; } } /** - * - * *
    * Required. A user-provided name of the certificate map.
    * 
* * string certificate_map_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for certificateMapId. */ @java.lang.Override - public com.google.protobuf.ByteString getCertificateMapIdBytes() { + public com.google.protobuf.ByteString + getCertificateMapIdBytes() { java.lang.Object ref = certificateMapId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); certificateMapId_ = b; return b; } else { @@ -245,16 +146,11 @@ public com.google.protobuf.ByteString getCertificateMapIdBytes() { public static final int CERTIFICATE_MAP_FIELD_NUMBER = 3; private com.google.cloud.certificatemanager.v1.CertificateMap certificateMap_; /** - * - * *
    * Required. A definition of the certificate map to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateMap field is set. */ @java.lang.Override @@ -262,43 +158,30 @@ public boolean hasCertificateMap() { return certificateMap_ != null; } /** - * - * *
    * Required. A definition of the certificate map to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateMap. */ @java.lang.Override public com.google.cloud.certificatemanager.v1.CertificateMap getCertificateMap() { - return certificateMap_ == null - ? com.google.cloud.certificatemanager.v1.CertificateMap.getDefaultInstance() - : certificateMap_; + return certificateMap_ == null ? com.google.cloud.certificatemanager.v1.CertificateMap.getDefaultInstance() : certificateMap_; } /** - * - * *
    * Required. A definition of the certificate map to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder - getCertificateMapOrBuilder() { + public com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder getCertificateMapOrBuilder() { return getCertificateMap(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -320,7 +204,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (certificateMap_ != null) { output.writeMessage(3, getCertificateMap()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -336,9 +220,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, certificateMapId_); } if (certificateMap_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCertificateMap()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCertificateMap()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -346,21 +231,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.certificatemanager.v1.CreateCertificateMapRequest)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest other = - (com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest) obj; + com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest other = (com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getCertificateMapId().equals(other.getCertificateMapId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getCertificateMapId() + .equals(other.getCertificateMapId())) return false; if (hasCertificateMap() != other.hasCertificateMap()) return false; if (hasCertificateMap()) { - if (!getCertificateMap().equals(other.getCertificateMap())) return false; + if (!getCertificateMap() + .equals(other.getCertificateMap())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -379,151 +266,135 @@ public int hashCode() { hash = (37 * hash) + CERTIFICATE_MAP_FIELD_NUMBER; hash = (53 * hash) + getCertificateMap().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `CreateCertificateMap` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.CreateCertificateMapRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.CreateCertificateMapRequest) com.google.cloud.certificatemanager.v1.CreateCertificateMapRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest.class, - com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest.Builder.class); + com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest.class, com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest.Builder.class); } - // Construct using - // com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest.newBuilder() + // Construct using com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -541,16 +412,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CreateCertificateMapRequest_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest - getDefaultInstanceForType() { - return com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest - .getDefaultInstance(); + public com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest.getDefaultInstance(); } @java.lang.Override @@ -564,8 +433,7 @@ public com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest build( @java.lang.Override public com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest buildPartial() { - com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest result = - new com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest(this); + com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest result = new com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest(this); result.parent_ = parent_; result.certificateMapId_ = certificateMapId_; if (certificateMapBuilder_ == null) { @@ -581,51 +449,46 @@ public com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest 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.certificatemanager.v1.CreateCertificateMapRequest) { - return mergeFrom( - (com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest other) { - if (other - == com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest other) { + if (other == com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -637,7 +500,7 @@ public Builder mergeFrom( if (other.hasCertificateMap()) { mergeCertificateMap(other.getCertificateMap()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -652,41 +515,65 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + certificateMapId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + input.readMessage( + getCertificateMapFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource of the certificate map. Must be 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; @@ -695,24 +582,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource of the certificate map. Must be 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 { @@ -720,70 +604,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource of the certificate map. Must be 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 parent resource of the certificate map. Must be 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 parent resource of the certificate map. Must be 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; @@ -791,20 +662,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object certificateMapId_ = ""; /** - * - * *
      * Required. A user-provided name of the certificate map.
      * 
* * string certificate_map_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The certificateMapId. */ public java.lang.String getCertificateMapId() { java.lang.Object ref = certificateMapId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateMapId_ = s; return s; @@ -813,21 +682,20 @@ public java.lang.String getCertificateMapId() { } } /** - * - * *
      * Required. A user-provided name of the certificate map.
      * 
* * string certificate_map_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for certificateMapId. */ - public com.google.protobuf.ByteString getCertificateMapIdBytes() { + public com.google.protobuf.ByteString + getCertificateMapIdBytes() { java.lang.Object ref = certificateMapId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); certificateMapId_ = b; return b; } else { @@ -835,61 +703,54 @@ public com.google.protobuf.ByteString getCertificateMapIdBytes() { } } /** - * - * *
      * Required. A user-provided name of the certificate map.
      * 
* * string certificate_map_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The certificateMapId to set. * @return This builder for chaining. */ - public Builder setCertificateMapId(java.lang.String value) { + public Builder setCertificateMapId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + certificateMapId_ = value; onChanged(); return this; } /** - * - * *
      * Required. A user-provided name of the certificate map.
      * 
* * string certificate_map_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCertificateMapId() { - + certificateMapId_ = getDefaultInstance().getCertificateMapId(); onChanged(); return this; } /** - * - * *
      * Required. A user-provided name of the certificate map.
      * 
* * string certificate_map_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for certificateMapId to set. * @return This builder for chaining. */ - public Builder setCertificateMapIdBytes(com.google.protobuf.ByteString value) { + public Builder setCertificateMapIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + certificateMapId_ = value; onChanged(); return this; @@ -897,58 +758,39 @@ public Builder setCertificateMapIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.certificatemanager.v1.CertificateMap certificateMap_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMap, - com.google.cloud.certificatemanager.v1.CertificateMap.Builder, - com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder> - certificateMapBuilder_; + com.google.cloud.certificatemanager.v1.CertificateMap, com.google.cloud.certificatemanager.v1.CertificateMap.Builder, com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder> certificateMapBuilder_; /** - * - * *
      * Required. A definition of the certificate map to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateMap field is set. */ public boolean hasCertificateMap() { return certificateMapBuilder_ != null || certificateMap_ != null; } /** - * - * *
      * Required. A definition of the certificate map to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateMap. */ public com.google.cloud.certificatemanager.v1.CertificateMap getCertificateMap() { if (certificateMapBuilder_ == null) { - return certificateMap_ == null - ? com.google.cloud.certificatemanager.v1.CertificateMap.getDefaultInstance() - : certificateMap_; + return certificateMap_ == null ? com.google.cloud.certificatemanager.v1.CertificateMap.getDefaultInstance() : certificateMap_; } else { return certificateMapBuilder_.getMessage(); } } /** - * - * *
      * Required. A definition of the certificate map to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificateMap(com.google.cloud.certificatemanager.v1.CertificateMap value) { if (certificateMapBuilder_ == null) { @@ -964,15 +806,11 @@ public Builder setCertificateMap(com.google.cloud.certificatemanager.v1.Certific return this; } /** - * - * *
      * Required. A definition of the certificate map to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificateMap( com.google.cloud.certificatemanager.v1.CertificateMap.Builder builderForValue) { @@ -986,24 +824,17 @@ public Builder setCertificateMap( return this; } /** - * - * *
      * Required. A definition of the certificate map to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeCertificateMap( - com.google.cloud.certificatemanager.v1.CertificateMap value) { + public Builder mergeCertificateMap(com.google.cloud.certificatemanager.v1.CertificateMap value) { if (certificateMapBuilder_ == null) { if (certificateMap_ != null) { certificateMap_ = - com.google.cloud.certificatemanager.v1.CertificateMap.newBuilder(certificateMap_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.certificatemanager.v1.CertificateMap.newBuilder(certificateMap_).mergeFrom(value).buildPartial(); } else { certificateMap_ = value; } @@ -1015,15 +846,11 @@ public Builder mergeCertificateMap( return this; } /** - * - * *
      * Required. A definition of the certificate map to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCertificateMap() { if (certificateMapBuilder_ == null) { @@ -1037,73 +864,55 @@ public Builder clearCertificateMap() { return this; } /** - * - * *
      * Required. A definition of the certificate map to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.certificatemanager.v1.CertificateMap.Builder - getCertificateMapBuilder() { - + public com.google.cloud.certificatemanager.v1.CertificateMap.Builder getCertificateMapBuilder() { + onChanged(); return getCertificateMapFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A definition of the certificate map to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder - getCertificateMapOrBuilder() { + public com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder getCertificateMapOrBuilder() { if (certificateMapBuilder_ != null) { return certificateMapBuilder_.getMessageOrBuilder(); } else { - return certificateMap_ == null - ? com.google.cloud.certificatemanager.v1.CertificateMap.getDefaultInstance() - : certificateMap_; + return certificateMap_ == null ? + com.google.cloud.certificatemanager.v1.CertificateMap.getDefaultInstance() : certificateMap_; } } /** - * - * *
      * Required. A definition of the certificate map to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMap, - com.google.cloud.certificatemanager.v1.CertificateMap.Builder, - com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder> + com.google.cloud.certificatemanager.v1.CertificateMap, com.google.cloud.certificatemanager.v1.CertificateMap.Builder, com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder> getCertificateMapFieldBuilder() { if (certificateMapBuilder_ == null) { - certificateMapBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMap, - com.google.cloud.certificatemanager.v1.CertificateMap.Builder, - com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder>( - getCertificateMap(), getParentForChildren(), isClean()); + certificateMapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateMap, com.google.cloud.certificatemanager.v1.CertificateMap.Builder, com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder>( + getCertificateMap(), + getParentForChildren(), + isClean()); certificateMap_ = null; } return certificateMapBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1113,32 +922,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.CreateCertificateMapRequest) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.CreateCertificateMapRequest) - private static final com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest(); } - public static com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCertificateMapRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCertificateMapRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCertificateMapRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1150,8 +968,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapRequestOrBuilder.java similarity index 54% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapRequestOrBuilder.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapRequestOrBuilder.java index b0aebeaa9e60..76308ca8fdff 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapRequestOrBuilder.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateMapRequestOrBuilder.java @@ -1,122 +1,78 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; -public interface CreateCertificateMapRequestOrBuilder - extends +public interface CreateCertificateMapRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.CreateCertificateMapRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource of the certificate map. Must be 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 parent resource of the certificate map. Must be 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. A user-provided name of the certificate map.
    * 
* * string certificate_map_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The certificateMapId. */ java.lang.String getCertificateMapId(); /** - * - * *
    * Required. A user-provided name of the certificate map.
    * 
* * string certificate_map_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for certificateMapId. */ - com.google.protobuf.ByteString getCertificateMapIdBytes(); + com.google.protobuf.ByteString + getCertificateMapIdBytes(); /** - * - * *
    * Required. A definition of the certificate map to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateMap field is set. */ boolean hasCertificateMap(); /** - * - * *
    * Required. A definition of the certificate map to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateMap. */ com.google.cloud.certificatemanager.v1.CertificateMap getCertificateMap(); /** - * - * *
    * Required. A definition of the certificate map to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder getCertificateMapOrBuilder(); } diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateRequest.java similarity index 59% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateRequest.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateRequest.java index 34ba41719494..60ad34c49b4b 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateRequest.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Request for the `CreateCertificate` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.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.certificatemanager.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_ = ""; @@ -44,114 +26,38 @@ 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) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - 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.certificatemanager.v1.Certificate.Builder subBuilder = null; - if (certificate_ != null) { - subBuilder = certificate_.toBuilder(); - } - certificate_ = - input.readMessage( - com.google.cloud.certificatemanager.v1.Certificate.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificate_); - certificate_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CreateCertificateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CreateCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CreateCertificateRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CreateCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.CreateCertificateRequest.class, - com.google.cloud.certificatemanager.v1.CreateCertificateRequest.Builder.class); + com.google.cloud.certificatemanager.v1.CreateCertificateRequest.class, com.google.cloud.certificatemanager.v1.CreateCertificateRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource of the certificate. Must be 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 @@ -160,32 +66,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource of the certificate. Must be 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 { @@ -196,14 +100,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CERTIFICATE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object certificateId_; /** - * - * *
    * Required. A user-provided name of the certificate.
    * 
* * string certificate_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The certificateId. */ @java.lang.Override @@ -212,29 +113,29 @@ 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; } } /** - * - * *
    * Required. A user-provided name of the certificate.
    * 
* * string certificate_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -245,16 +146,11 @@ public com.google.protobuf.ByteString getCertificateIdBytes() { public static final int CERTIFICATE_FIELD_NUMBER = 3; private com.google.cloud.certificatemanager.v1.Certificate certificate_; /** - * - * *
    * Required. A definition of the certificate to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificate field is set. */ @java.lang.Override @@ -262,34 +158,23 @@ public boolean hasCertificate() { return certificate_ != null; } /** - * - * *
    * Required. A definition of the certificate to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificate. */ @java.lang.Override public com.google.cloud.certificatemanager.v1.Certificate getCertificate() { - return certificate_ == null - ? com.google.cloud.certificatemanager.v1.Certificate.getDefaultInstance() - : certificate_; + return certificate_ == null ? com.google.cloud.certificatemanager.v1.Certificate.getDefaultInstance() : certificate_; } /** - * - * *
    * Required. A definition of the certificate to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.certificatemanager.v1.CertificateOrBuilder getCertificateOrBuilder() { @@ -297,7 +182,6 @@ public com.google.cloud.certificatemanager.v1.CertificateOrBuilder getCertificat } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -319,7 +204,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (certificate_ != null) { output.writeMessage(3, getCertificate()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -335,9 +220,10 @@ 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()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -345,21 +231,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.certificatemanager.v1.CreateCertificateRequest)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.CreateCertificateRequest other = - (com.google.cloud.certificatemanager.v1.CreateCertificateRequest) obj; + com.google.cloud.certificatemanager.v1.CreateCertificateRequest other = (com.google.cloud.certificatemanager.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 (!getCertificate() + .equals(other.getCertificate())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -378,149 +266,135 @@ public int hashCode() { hash = (37 * hash) + CERTIFICATE_FIELD_NUMBER; hash = (53 * hash) + getCertificate().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.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.certificatemanager.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.certificatemanager.v1.CreateCertificateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.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.certificatemanager.v1.CreateCertificateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.CreateCertificateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.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.certificatemanager.v1.CreateCertificateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.CreateCertificateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.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.certificatemanager.v1.CreateCertificateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.CreateCertificateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.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.certificatemanager.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.certificatemanager.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.certificatemanager.v1.CreateCertificateRequest prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.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 for the `CreateCertificate` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.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.certificatemanager.v1.CreateCertificateRequest) com.google.cloud.certificatemanager.v1.CreateCertificateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CreateCertificateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CreateCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CreateCertificateRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CreateCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.CreateCertificateRequest.class, - com.google.cloud.certificatemanager.v1.CreateCertificateRequest.Builder.class); + com.google.cloud.certificatemanager.v1.CreateCertificateRequest.class, com.google.cloud.certificatemanager.v1.CreateCertificateRequest.Builder.class); } // Construct using com.google.cloud.certificatemanager.v1.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -538,14 +412,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CreateCertificateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CreateCertificateRequest_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.CreateCertificateRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.CreateCertificateRequest getDefaultInstanceForType() { return com.google.cloud.certificatemanager.v1.CreateCertificateRequest.getDefaultInstance(); } @@ -560,8 +433,7 @@ public com.google.cloud.certificatemanager.v1.CreateCertificateRequest build() { @java.lang.Override public com.google.cloud.certificatemanager.v1.CreateCertificateRequest buildPartial() { - com.google.cloud.certificatemanager.v1.CreateCertificateRequest result = - new com.google.cloud.certificatemanager.v1.CreateCertificateRequest(this); + com.google.cloud.certificatemanager.v1.CreateCertificateRequest result = new com.google.cloud.certificatemanager.v1.CreateCertificateRequest(this); result.parent_ = parent_; result.certificateId_ = certificateId_; if (certificateBuilder_ == null) { @@ -577,50 +449,46 @@ public com.google.cloud.certificatemanager.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.certificatemanager.v1.CreateCertificateRequest) { - return mergeFrom((com.google.cloud.certificatemanager.v1.CreateCertificateRequest) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.CreateCertificateRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.CreateCertificateRequest other) { - if (other - == com.google.cloud.certificatemanager.v1.CreateCertificateRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.CreateCertificateRequest other) { + if (other == com.google.cloud.certificatemanager.v1.CreateCertificateRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -632,7 +500,7 @@ public Builder mergeFrom( if (other.hasCertificate()) { mergeCertificate(other.getCertificate()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -647,41 +515,65 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.CreateCertificateRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + certificateId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + input.readMessage( + getCertificateFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.CreateCertificateRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource of the certificate. Must be 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; @@ -690,24 +582,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource of the certificate. Must be 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 { @@ -715,70 +604,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource of the certificate. Must be 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 parent resource of the certificate. Must be 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 parent resource of the certificate. Must be 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; @@ -786,20 +662,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object certificateId_ = ""; /** - * - * *
      * Required. A user-provided name of the certificate.
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -808,21 +682,20 @@ public java.lang.String getCertificateId() { } } /** - * - * *
      * Required. A user-provided name of the certificate.
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -830,61 +703,54 @@ public com.google.protobuf.ByteString getCertificateIdBytes() { } } /** - * - * *
      * Required. A user-provided name of the certificate.
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @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; } /** - * - * *
      * Required. A user-provided name of the certificate.
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCertificateId() { - + certificateId_ = getDefaultInstance().getCertificateId(); onChanged(); return this; } /** - * - * *
      * Required. A user-provided name of the certificate.
      * 
* * string certificate_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -892,58 +758,39 @@ public Builder setCertificateIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.certificatemanager.v1.Certificate certificate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.Certificate, - com.google.cloud.certificatemanager.v1.Certificate.Builder, - com.google.cloud.certificatemanager.v1.CertificateOrBuilder> - certificateBuilder_; + com.google.cloud.certificatemanager.v1.Certificate, com.google.cloud.certificatemanager.v1.Certificate.Builder, com.google.cloud.certificatemanager.v1.CertificateOrBuilder> certificateBuilder_; /** - * - * *
      * Required. A definition of the certificate to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.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 definition of the certificate to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificate. */ public com.google.cloud.certificatemanager.v1.Certificate getCertificate() { if (certificateBuilder_ == null) { - return certificate_ == null - ? com.google.cloud.certificatemanager.v1.Certificate.getDefaultInstance() - : certificate_; + return certificate_ == null ? com.google.cloud.certificatemanager.v1.Certificate.getDefaultInstance() : certificate_; } else { return certificateBuilder_.getMessage(); } } /** - * - * *
      * Required. A definition of the certificate to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificate(com.google.cloud.certificatemanager.v1.Certificate value) { if (certificateBuilder_ == null) { @@ -959,15 +806,11 @@ public Builder setCertificate(com.google.cloud.certificatemanager.v1.Certificate return this; } /** - * - * *
      * Required. A definition of the certificate to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificate( com.google.cloud.certificatemanager.v1.Certificate.Builder builderForValue) { @@ -981,23 +824,17 @@ public Builder setCertificate( return this; } /** - * - * *
      * Required. A definition of the certificate to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCertificate(com.google.cloud.certificatemanager.v1.Certificate value) { if (certificateBuilder_ == null) { if (certificate_ != null) { certificate_ = - com.google.cloud.certificatemanager.v1.Certificate.newBuilder(certificate_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.certificatemanager.v1.Certificate.newBuilder(certificate_).mergeFrom(value).buildPartial(); } else { certificate_ = value; } @@ -1009,15 +846,11 @@ public Builder mergeCertificate(com.google.cloud.certificatemanager.v1.Certifica return this; } /** - * - * *
      * Required. A definition of the certificate to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCertificate() { if (certificateBuilder_ == null) { @@ -1031,71 +864,55 @@ public Builder clearCertificate() { return this; } /** - * - * *
      * Required. A definition of the certificate to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.certificatemanager.v1.Certificate.Builder getCertificateBuilder() { - + onChanged(); return getCertificateFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A definition of the certificate to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.certificatemanager.v1.CertificateOrBuilder getCertificateOrBuilder() { if (certificateBuilder_ != null) { return certificateBuilder_.getMessageOrBuilder(); } else { - return certificate_ == null - ? com.google.cloud.certificatemanager.v1.Certificate.getDefaultInstance() - : certificate_; + return certificate_ == null ? + com.google.cloud.certificatemanager.v1.Certificate.getDefaultInstance() : certificate_; } } /** - * - * *
      * Required. A definition of the certificate to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.Certificate, - com.google.cloud.certificatemanager.v1.Certificate.Builder, - com.google.cloud.certificatemanager.v1.CertificateOrBuilder> + com.google.cloud.certificatemanager.v1.Certificate, com.google.cloud.certificatemanager.v1.Certificate.Builder, com.google.cloud.certificatemanager.v1.CertificateOrBuilder> getCertificateFieldBuilder() { if (certificateBuilder_ == null) { - certificateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.Certificate, - com.google.cloud.certificatemanager.v1.Certificate.Builder, - com.google.cloud.certificatemanager.v1.CertificateOrBuilder>( - getCertificate(), getParentForChildren(), isClean()); + certificateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.Certificate, com.google.cloud.certificatemanager.v1.Certificate.Builder, com.google.cloud.certificatemanager.v1.CertificateOrBuilder>( + getCertificate(), + getParentForChildren(), + isClean()); certificate_ = null; } return certificateBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1105,32 +922,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.CreateCertificateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.CreateCertificateRequest) - private static final com.google.cloud.certificatemanager.v1.CreateCertificateRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.CreateCertificateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.CreateCertificateRequest(); } - public static com.google.cloud.certificatemanager.v1.CreateCertificateRequest - getDefaultInstance() { + public static com.google.cloud.certificatemanager.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1142,8 +968,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.certificatemanager.v1.CreateCertificateRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.CreateCertificateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateRequestOrBuilder.java similarity index 53% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateRequestOrBuilder.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateRequestOrBuilder.java index 9d1c9d3ecafa..bc0a7a781c73 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateRequestOrBuilder.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateCertificateRequestOrBuilder.java @@ -1,122 +1,78 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; -public interface CreateCertificateRequestOrBuilder - extends +public interface CreateCertificateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.CreateCertificateRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource of the certificate. Must be 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 parent resource of the certificate. Must be 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. A user-provided name of the certificate.
    * 
* * string certificate_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The certificateId. */ java.lang.String getCertificateId(); /** - * - * *
    * Required. A user-provided name of the certificate.
    * 
* * string certificate_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for certificateId. */ - com.google.protobuf.ByteString getCertificateIdBytes(); + com.google.protobuf.ByteString + getCertificateIdBytes(); /** - * - * *
    * Required. A definition of the certificate to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificate field is set. */ boolean hasCertificate(); /** - * - * *
    * Required. A definition of the certificate to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The certificate. */ com.google.cloud.certificatemanager.v1.Certificate getCertificate(); /** - * - * *
    * Required. A definition of the certificate to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.certificatemanager.v1.CertificateOrBuilder getCertificateOrBuilder(); } diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateDnsAuthorizationRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateDnsAuthorizationRequest.java similarity index 57% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateDnsAuthorizationRequest.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateDnsAuthorizationRequest.java index 812e164421e9..ba323df8c435 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateDnsAuthorizationRequest.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateDnsAuthorizationRequest.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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Request for the `CreateDnsAuthorization` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest} */ -public final class CreateDnsAuthorizationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateDnsAuthorizationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest) CreateDnsAuthorizationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateDnsAuthorizationRequest.newBuilder() to construct. private CreateDnsAuthorizationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateDnsAuthorizationRequest() { parent_ = ""; dnsAuthorizationId_ = ""; @@ -44,114 +26,38 @@ private CreateDnsAuthorizationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateDnsAuthorizationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private CreateDnsAuthorizationRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - dnsAuthorizationId_ = s; - break; - } - case 26: - { - com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder subBuilder = null; - if (dnsAuthorization_ != null) { - subBuilder = dnsAuthorization_.toBuilder(); - } - dnsAuthorization_ = - input.readMessage( - com.google.cloud.certificatemanager.v1.DnsAuthorization.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dnsAuthorization_); - dnsAuthorization_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CreateDnsAuthorizationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CreateDnsAuthorizationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CreateDnsAuthorizationRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CreateDnsAuthorizationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest.class, - com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest.Builder.class); + com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest.class, com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
-   * Required. The parent resource of the dns authorization. Must be in the format
-   * `projects/*/locations/*`.
+   * Required. The parent resource of the dns authorization. Must be 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 @@ -160,32 +66,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
-   * Required. The parent resource of the dns authorization. Must be in the format
-   * `projects/*/locations/*`.
+   * Required. The parent resource of the dns authorization. Must be 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 { @@ -196,14 +100,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int DNS_AUTHORIZATION_ID_FIELD_NUMBER = 2; private volatile java.lang.Object dnsAuthorizationId_; /** - * - * *
    * Required. A user-provided name of the dns authorization.
    * 
* * string dns_authorization_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The dnsAuthorizationId. */ @java.lang.Override @@ -212,29 +113,29 @@ public java.lang.String getDnsAuthorizationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dnsAuthorizationId_ = s; return s; } } /** - * - * *
    * Required. A user-provided name of the dns authorization.
    * 
* * string dns_authorization_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for dnsAuthorizationId. */ @java.lang.Override - public com.google.protobuf.ByteString getDnsAuthorizationIdBytes() { + public com.google.protobuf.ByteString + getDnsAuthorizationIdBytes() { java.lang.Object ref = dnsAuthorizationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dnsAuthorizationId_ = b; return b; } else { @@ -245,16 +146,11 @@ public com.google.protobuf.ByteString getDnsAuthorizationIdBytes() { public static final int DNS_AUTHORIZATION_FIELD_NUMBER = 3; private com.google.cloud.certificatemanager.v1.DnsAuthorization dnsAuthorization_; /** - * - * *
    * Required. A definition of the dns authorization to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dnsAuthorization field is set. */ @java.lang.Override @@ -262,43 +158,30 @@ public boolean hasDnsAuthorization() { return dnsAuthorization_ != null; } /** - * - * *
    * Required. A definition of the dns authorization to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The dnsAuthorization. */ @java.lang.Override public com.google.cloud.certificatemanager.v1.DnsAuthorization getDnsAuthorization() { - return dnsAuthorization_ == null - ? com.google.cloud.certificatemanager.v1.DnsAuthorization.getDefaultInstance() - : dnsAuthorization_; + return dnsAuthorization_ == null ? com.google.cloud.certificatemanager.v1.DnsAuthorization.getDefaultInstance() : dnsAuthorization_; } /** - * - * *
    * Required. A definition of the dns authorization to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder - getDnsAuthorizationOrBuilder() { + public com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder getDnsAuthorizationOrBuilder() { return getDnsAuthorization(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -320,7 +204,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dnsAuthorization_ != null) { output.writeMessage(3, getDnsAuthorization()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -336,9 +220,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dnsAuthorizationId_); } if (dnsAuthorization_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDnsAuthorization()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDnsAuthorization()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -346,21 +231,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.certificatemanager.v1.CreateDnsAuthorizationRequest)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest other = - (com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest) obj; + com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest other = (com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getDnsAuthorizationId().equals(other.getDnsAuthorizationId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getDnsAuthorizationId() + .equals(other.getDnsAuthorizationId())) return false; if (hasDnsAuthorization() != other.hasDnsAuthorization()) return false; if (hasDnsAuthorization()) { - if (!getDnsAuthorization().equals(other.getDnsAuthorization())) return false; + if (!getDnsAuthorization() + .equals(other.getDnsAuthorization())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -379,151 +266,135 @@ public int hashCode() { hash = (37 * hash) + DNS_AUTHORIZATION_FIELD_NUMBER; hash = (53 * hash) + getDnsAuthorization().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `CreateDnsAuthorization` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest) com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CreateDnsAuthorizationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CreateDnsAuthorizationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CreateDnsAuthorizationRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CreateDnsAuthorizationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest.class, - com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest.Builder.class); + com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest.class, com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest.Builder.class); } - // Construct using - // com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest.newBuilder() + // Construct using com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -541,16 +412,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_CreateDnsAuthorizationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_CreateDnsAuthorizationRequest_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest - getDefaultInstanceForType() { - return com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest - .getDefaultInstance(); + public com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest.getDefaultInstance(); } @java.lang.Override @@ -564,8 +433,7 @@ public com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest buil @java.lang.Override public com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest buildPartial() { - com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest result = - new com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest(this); + com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest result = new com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest(this); result.parent_ = parent_; result.dnsAuthorizationId_ = dnsAuthorizationId_; if (dnsAuthorizationBuilder_ == null) { @@ -581,51 +449,46 @@ public com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest 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.certificatemanager.v1.CreateDnsAuthorizationRequest) { - return mergeFrom( - (com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest other) { - if (other - == com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest other) { + if (other == com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -637,7 +500,7 @@ public Builder mergeFrom( if (other.hasDnsAuthorization()) { mergeDnsAuthorization(other.getDnsAuthorization()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -652,41 +515,65 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + dnsAuthorizationId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + input.readMessage( + getDnsAuthorizationFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object parent_ = ""; /** - * - * *
-     * Required. The parent resource of the dns authorization. Must be in the format
-     * `projects/*/locations/*`.
+     * Required. The parent resource of the dns authorization. Must be 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; @@ -695,24 +582,21 @@ public java.lang.String getParent() { } } /** - * - * *
-     * Required. The parent resource of the dns authorization. Must be in the format
-     * `projects/*/locations/*`.
+     * Required. The parent resource of the dns authorization. Must be 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 { @@ -720,70 +604,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
-     * Required. The parent resource of the dns authorization. Must be in the format
-     * `projects/*/locations/*`.
+     * Required. The parent resource of the dns authorization. Must be 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 parent resource of the dns authorization. Must be in the format
-     * `projects/*/locations/*`.
+     * Required. The parent resource of the dns authorization. Must be 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 parent resource of the dns authorization. Must be in the format
-     * `projects/*/locations/*`.
+     * Required. The parent resource of the dns authorization. Must be 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; @@ -791,20 +662,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object dnsAuthorizationId_ = ""; /** - * - * *
      * Required. A user-provided name of the dns authorization.
      * 
* * string dns_authorization_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The dnsAuthorizationId. */ public java.lang.String getDnsAuthorizationId() { java.lang.Object ref = dnsAuthorizationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dnsAuthorizationId_ = s; return s; @@ -813,21 +682,20 @@ public java.lang.String getDnsAuthorizationId() { } } /** - * - * *
      * Required. A user-provided name of the dns authorization.
      * 
* * string dns_authorization_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for dnsAuthorizationId. */ - public com.google.protobuf.ByteString getDnsAuthorizationIdBytes() { + public com.google.protobuf.ByteString + getDnsAuthorizationIdBytes() { java.lang.Object ref = dnsAuthorizationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dnsAuthorizationId_ = b; return b; } else { @@ -835,61 +703,54 @@ public com.google.protobuf.ByteString getDnsAuthorizationIdBytes() { } } /** - * - * *
      * Required. A user-provided name of the dns authorization.
      * 
* * string dns_authorization_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The dnsAuthorizationId to set. * @return This builder for chaining. */ - public Builder setDnsAuthorizationId(java.lang.String value) { + public Builder setDnsAuthorizationId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dnsAuthorizationId_ = value; onChanged(); return this; } /** - * - * *
      * Required. A user-provided name of the dns authorization.
      * 
* * string dns_authorization_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDnsAuthorizationId() { - + dnsAuthorizationId_ = getDefaultInstance().getDnsAuthorizationId(); onChanged(); return this; } /** - * - * *
      * Required. A user-provided name of the dns authorization.
      * 
* * string dns_authorization_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for dnsAuthorizationId to set. * @return This builder for chaining. */ - public Builder setDnsAuthorizationIdBytes(com.google.protobuf.ByteString value) { + public Builder setDnsAuthorizationIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dnsAuthorizationId_ = value; onChanged(); return this; @@ -897,61 +758,41 @@ public Builder setDnsAuthorizationIdBytes(com.google.protobuf.ByteString value) private com.google.cloud.certificatemanager.v1.DnsAuthorization dnsAuthorization_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.DnsAuthorization, - com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder, - com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder> - dnsAuthorizationBuilder_; + com.google.cloud.certificatemanager.v1.DnsAuthorization, com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder, com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder> dnsAuthorizationBuilder_; /** - * - * *
      * Required. A definition of the dns authorization to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dnsAuthorization field is set. */ public boolean hasDnsAuthorization() { return dnsAuthorizationBuilder_ != null || dnsAuthorization_ != null; } /** - * - * *
      * Required. A definition of the dns authorization to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The dnsAuthorization. */ public com.google.cloud.certificatemanager.v1.DnsAuthorization getDnsAuthorization() { if (dnsAuthorizationBuilder_ == null) { - return dnsAuthorization_ == null - ? com.google.cloud.certificatemanager.v1.DnsAuthorization.getDefaultInstance() - : dnsAuthorization_; + return dnsAuthorization_ == null ? com.google.cloud.certificatemanager.v1.DnsAuthorization.getDefaultInstance() : dnsAuthorization_; } else { return dnsAuthorizationBuilder_.getMessage(); } } /** - * - * *
      * Required. A definition of the dns authorization to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setDnsAuthorization( - com.google.cloud.certificatemanager.v1.DnsAuthorization value) { + public Builder setDnsAuthorization(com.google.cloud.certificatemanager.v1.DnsAuthorization value) { if (dnsAuthorizationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -965,15 +806,11 @@ public Builder setDnsAuthorization( return this; } /** - * - * *
      * Required. A definition of the dns authorization to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDnsAuthorization( com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder builderForValue) { @@ -987,24 +824,17 @@ public Builder setDnsAuthorization( return this; } /** - * - * *
      * Required. A definition of the dns authorization to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeDnsAuthorization( - com.google.cloud.certificatemanager.v1.DnsAuthorization value) { + public Builder mergeDnsAuthorization(com.google.cloud.certificatemanager.v1.DnsAuthorization value) { if (dnsAuthorizationBuilder_ == null) { if (dnsAuthorization_ != null) { dnsAuthorization_ = - com.google.cloud.certificatemanager.v1.DnsAuthorization.newBuilder(dnsAuthorization_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.certificatemanager.v1.DnsAuthorization.newBuilder(dnsAuthorization_).mergeFrom(value).buildPartial(); } else { dnsAuthorization_ = value; } @@ -1016,15 +846,11 @@ public Builder mergeDnsAuthorization( return this; } /** - * - * *
      * Required. A definition of the dns authorization to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDnsAuthorization() { if (dnsAuthorizationBuilder_ == null) { @@ -1038,73 +864,55 @@ public Builder clearDnsAuthorization() { return this; } /** - * - * *
      * Required. A definition of the dns authorization to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder - getDnsAuthorizationBuilder() { - + public com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder getDnsAuthorizationBuilder() { + onChanged(); return getDnsAuthorizationFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A definition of the dns authorization to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder - getDnsAuthorizationOrBuilder() { + public com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder getDnsAuthorizationOrBuilder() { if (dnsAuthorizationBuilder_ != null) { return dnsAuthorizationBuilder_.getMessageOrBuilder(); } else { - return dnsAuthorization_ == null - ? com.google.cloud.certificatemanager.v1.DnsAuthorization.getDefaultInstance() - : dnsAuthorization_; + return dnsAuthorization_ == null ? + com.google.cloud.certificatemanager.v1.DnsAuthorization.getDefaultInstance() : dnsAuthorization_; } } /** - * - * *
      * Required. A definition of the dns authorization to create.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.DnsAuthorization, - com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder, - com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder> + com.google.cloud.certificatemanager.v1.DnsAuthorization, com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder, com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder> getDnsAuthorizationFieldBuilder() { if (dnsAuthorizationBuilder_ == null) { - dnsAuthorizationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.DnsAuthorization, - com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder, - com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder>( - getDnsAuthorization(), getParentForChildren(), isClean()); + dnsAuthorizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.DnsAuthorization, com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder, com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder>( + getDnsAuthorization(), + getParentForChildren(), + isClean()); dnsAuthorization_ = null; } return dnsAuthorizationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1114,32 +922,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest) - private static final com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest(); } - public static com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDnsAuthorizationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateDnsAuthorizationRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDnsAuthorizationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1151,8 +968,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateDnsAuthorizationRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateDnsAuthorizationRequestOrBuilder.java similarity index 50% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateDnsAuthorizationRequestOrBuilder.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateDnsAuthorizationRequestOrBuilder.java index 86dafc854d55..66b4dc2ab024 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateDnsAuthorizationRequestOrBuilder.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CreateDnsAuthorizationRequestOrBuilder.java @@ -1,122 +1,78 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; -public interface CreateDnsAuthorizationRequestOrBuilder - extends +public interface CreateDnsAuthorizationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Required. The parent resource of the dns authorization. Must be in the format
-   * `projects/*/locations/*`.
+   * Required. The parent resource of the dns authorization. Must be 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 parent resource of the dns authorization. Must be in the format
-   * `projects/*/locations/*`.
+   * Required. The parent resource of the dns authorization. Must be 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. A user-provided name of the dns authorization.
    * 
* * string dns_authorization_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The dnsAuthorizationId. */ java.lang.String getDnsAuthorizationId(); /** - * - * *
    * Required. A user-provided name of the dns authorization.
    * 
* * string dns_authorization_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for dnsAuthorizationId. */ - com.google.protobuf.ByteString getDnsAuthorizationIdBytes(); + com.google.protobuf.ByteString + getDnsAuthorizationIdBytes(); /** - * - * *
    * Required. A definition of the dns authorization to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dnsAuthorization field is set. */ boolean hasDnsAuthorization(); /** - * - * *
    * Required. A definition of the dns authorization to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The dnsAuthorization. */ com.google.cloud.certificatemanager.v1.DnsAuthorization getDnsAuthorization(); /** - * - * *
    * Required. A definition of the dns authorization to create.
    * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder getDnsAuthorizationOrBuilder(); } diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateIssuanceConfigRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateIssuanceConfigRequest.java new file mode 100644 index 000000000000..e0ee647941c4 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateIssuanceConfigRequest.java @@ -0,0 +1,581 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +/** + *
+ * Request for the `DeleteCertificateIssuanceConfig` method.
+ * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest} + */ +public final class DeleteCertificateIssuanceConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest) + DeleteCertificateIssuanceConfigRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteCertificateIssuanceConfigRequest.newBuilder() to construct. + private DeleteCertificateIssuanceConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteCertificateIssuanceConfigRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteCertificateIssuanceConfigRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_DeleteCertificateIssuanceConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_DeleteCertificateIssuanceConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest.class, com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. A name of the certificate issuance config to delete. Must be in
+   * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. A name of the certificate issuance config to delete. Must be in
+   * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * 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() { + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest other = (com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest 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.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest 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.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the `DeleteCertificateIssuanceConfig` method.
+   * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest) + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_DeleteCertificateIssuanceConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_DeleteCertificateIssuanceConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest.class, com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_DeleteCertificateIssuanceConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest build() { + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest buildPartial() { + com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest result = new com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest) { + return mergeFrom((com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest other) { + if (other == com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. A name of the certificate issuance config to delete. Must be in
+     * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. A name of the certificate issuance config to delete. Must be in
+     * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. A name of the certificate issuance config to delete. Must be in
+     * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. A name of the certificate issuance config to delete. Must be in
+     * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * 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. A name of the certificate issuance config to delete. Must be in
+     * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest) + private static final com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest(); + } + + public static com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCertificateIssuanceConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateIssuanceConfigRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateIssuanceConfigRequestOrBuilder.java new file mode 100644 index 000000000000..7fa24ea7b441 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateIssuanceConfigRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +public interface DeleteCertificateIssuanceConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A name of the certificate issuance config to delete. Must be in
+   * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. A name of the certificate issuance config to delete. Must be in
+   * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapEntryRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapEntryRequest.java similarity index 51% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapEntryRequest.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapEntryRequest.java index 4afacee82050..2cb06b2e1e30 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapEntryRequest.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapEntryRequest.java @@ -1,133 +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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Request for the `DeleteCertificateMapEntry` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest} */ -public final class DeleteCertificateMapEntryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteCertificateMapEntryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest) DeleteCertificateMapEntryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteCertificateMapEntryRequest.newBuilder() to construct. - private DeleteCertificateMapEntryRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteCertificateMapEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteCertificateMapEntryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteCertificateMapEntryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private DeleteCertificateMapEntryRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapEntryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapEntryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapEntryRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapEntryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest.class, - com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest.Builder.class); + com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest.class, com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
-   * Required. A name of the certificate map entry to delete. Must be in the format
-   * `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
+   * Required. A name of the certificate map entry to delete. Must be in the
+   * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
    * 
* - * - * string name = 1 [(.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 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
-   * Required. A name of the certificate map entry to delete. Must be in the format
-   * `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
+   * Required. A name of the certificate map entry to delete. Must be in the
+   * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
    * 
* - * - * string name = 1 [(.google.api.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 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -182,11 +108,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_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -198,7 +125,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -206,16 +133,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.certificatemanager.v1.DeleteCertificateMapEntryRequest)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest other = - (com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest) obj; + com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest other = (com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -228,152 +155,135 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `DeleteCertificateMapEntry` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest) com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapEntryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapEntryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapEntryRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapEntryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest.class, - com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest.Builder - .class); + com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest.class, com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest.Builder.class); } - // Construct using - // com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest.newBuilder() + // Construct using com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -383,22 +293,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapEntryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapEntryRequest_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest - getDefaultInstanceForType() { - return com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest - .getDefaultInstance(); + public com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest build() { - com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest result = - buildPartial(); + com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -407,8 +314,7 @@ public com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest b @java.lang.Override public com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest buildPartial() { - com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest result = - new com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest(this); + com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest result = new com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest(this); result.name_ = name_; onBuilt(); return result; @@ -418,57 +324,51 @@ public com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest 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.certificatemanager.v1.DeleteCertificateMapEntryRequest) { - return mergeFrom( - (com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest) other); + if (other instanceof com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest) { + return mergeFrom((com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest other) { - if (other - == com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest other) { + if (other == com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -483,41 +383,53 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object name_ = ""; /** - * - * *
-     * Required. A name of the certificate map entry to delete. Must be in the format
-     * `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
+     * Required. A name of the certificate map entry to delete. Must be in the
+     * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
      * 
* - * - * string name = 1 [(.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; @@ -526,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
-     * Required. A name of the certificate map entry to delete. Must be in the format
-     * `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
+     * Required. A name of the certificate map entry to delete. Must be in the
+     * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -551,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
-     * Required. A name of the certificate map entry to delete. Must be in the format
-     * `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
+     * Required. A name of the certificate map entry to delete. Must be in the
+     * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
      * 
* - * - * 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. A name of the certificate map entry to delete. Must be in the format
-     * `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
+     * Required. A name of the certificate map entry to delete. Must be in the
+     * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
      * 
* - * - * string 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. A name of the certificate map entry to delete. Must be in the format
-     * `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
+     * Required. A name of the certificate map entry to delete. Must be in the
+     * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
      * 
* - * - * 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); } @@ -631,33 +527,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest) - private static final com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest(); + DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest(); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteCertificateMapEntryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteCertificateMapEntryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCertificateMapEntryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -669,8 +573,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapEntryRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapEntryRequestOrBuilder.java new file mode 100644 index 000000000000..032ccb5e9806 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapEntryRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/certificatemanager/v1/certificate_manager.proto + +package com.google.cloud.certificatemanager.v1; + +public interface DeleteCertificateMapEntryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A name of the certificate map entry to delete. Must be in the
+   * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. A name of the certificate map entry to delete. Must be in the
+   * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapRequest.java similarity index 56% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapRequest.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapRequest.java index 5965c876c119..9c57d2e9f932 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapRequest.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapRequest.java @@ -1,132 +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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Request for the `DeleteCertificateMap` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.DeleteCertificateMapRequest} */ -public final class DeleteCertificateMapRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteCertificateMapRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.DeleteCertificateMapRequest) DeleteCertificateMapRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteCertificateMapRequest.newBuilder() to construct. private DeleteCertificateMapRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteCertificateMapRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteCertificateMapRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private DeleteCertificateMapRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest.class, - com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest.Builder.class); + com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest.class, com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. A name of the certificate map to delete. Must be in the format
    * `projects/*/locations/*/certificateMaps/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. A name of the certificate map to delete. Must be in the format
    * `projects/*/locations/*/certificateMaps/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,11 +108,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_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +125,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -205,16 +133,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.certificatemanager.v1.DeleteCertificateMapRequest)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest other = - (com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest) obj; + com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest other = (com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,151 +155,135 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `DeleteCertificateMap` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.DeleteCertificateMapRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.DeleteCertificateMapRequest) com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest.class, - com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest.Builder.class); + com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest.class, com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest.Builder.class); } - // Construct using - // com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest.newBuilder() + // Construct using com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,16 +293,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DeleteCertificateMapRequest_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest - getDefaultInstanceForType() { - return com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest - .getDefaultInstance(); + public com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest.getDefaultInstance(); } @java.lang.Override @@ -404,8 +314,7 @@ public com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest build( @java.lang.Override public com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest buildPartial() { - com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest result = - new com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest(this); + com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest result = new com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest(this); result.name_ = name_; onBuilt(); return result; @@ -415,56 +324,51 @@ public com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest 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.certificatemanager.v1.DeleteCertificateMapRequest) { - return mergeFrom( - (com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest other) { - if (other - == com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest other) { + if (other == com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -479,41 +383,53 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object name_ = ""; /** - * - * *
      * Required. A name of the certificate map to delete. Must be in the format
      * `projects/*/locations/*/certificateMaps/*`.
      * 
* - * - * string name = 1 [(.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; @@ -522,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. A name of the certificate map to delete. Must be in the format
      * `projects/*/locations/*/certificateMaps/*`.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -547,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. A name of the certificate map to delete. Must be in the format
      * `projects/*/locations/*/certificateMaps/*`.
      * 
* - * - * 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. A name of the certificate map to delete. Must be in the format
      * `projects/*/locations/*/certificateMaps/*`.
      * 
* - * - * string 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. A name of the certificate map to delete. Must be in the format
      * `projects/*/locations/*/certificateMaps/*`.
      * 
* - * - * 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); } @@ -627,32 +527,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.DeleteCertificateMapRequest) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.DeleteCertificateMapRequest) - private static final com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest(); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteCertificateMapRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteCertificateMapRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCertificateMapRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,8 +573,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapRequestOrBuilder.java new file mode 100644 index 000000000000..57ed9652999d --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateMapRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/certificatemanager/v1/certificate_manager.proto + +package com.google.cloud.certificatemanager.v1; + +public interface DeleteCertificateMapRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.DeleteCertificateMapRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A name of the certificate map to delete. Must be in the format
+   * `projects/*/locations/*/certificateMaps/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. A name of the certificate map to delete. Must be in the format
+   * `projects/*/locations/*/certificateMaps/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateRequest.java similarity index 57% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateRequest.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateRequest.java index 13771abc0b8d..5dc7eedde2c6 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateRequest.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateRequest.java @@ -1,132 +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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Request for the `DeleteCertificate` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.DeleteCertificateRequest} */ -public final class DeleteCertificateRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteCertificateRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.DeleteCertificateRequest) DeleteCertificateRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteCertificateRequest.newBuilder() to construct. private DeleteCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteCertificateRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteCertificateRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private DeleteCertificateRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_DeleteCertificateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DeleteCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_DeleteCertificateRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DeleteCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.DeleteCertificateRequest.class, - com.google.cloud.certificatemanager.v1.DeleteCertificateRequest.Builder.class); + com.google.cloud.certificatemanager.v1.DeleteCertificateRequest.class, com.google.cloud.certificatemanager.v1.DeleteCertificateRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. A name of the certificate to delete. Must be in the format
    * `projects/*/locations/*/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 @@ -135,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. A name of the certificate to delete. Must be in the format
    * `projects/*/locations/*/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 { @@ -169,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,11 +108,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_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +125,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -205,16 +133,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.certificatemanager.v1.DeleteCertificateRequest)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.DeleteCertificateRequest other = - (com.google.cloud.certificatemanager.v1.DeleteCertificateRequest) obj; + com.google.cloud.certificatemanager.v1.DeleteCertificateRequest other = (com.google.cloud.certificatemanager.v1.DeleteCertificateRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,149 +155,135 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.DeleteCertificateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.DeleteCertificateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.DeleteCertificateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.DeleteCertificateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.DeleteCertificateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.DeleteCertificateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.DeleteCertificateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.DeleteCertificateRequest prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.DeleteCertificateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `DeleteCertificate` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.DeleteCertificateRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.DeleteCertificateRequest) com.google.cloud.certificatemanager.v1.DeleteCertificateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_DeleteCertificateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DeleteCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_DeleteCertificateRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DeleteCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.DeleteCertificateRequest.class, - com.google.cloud.certificatemanager.v1.DeleteCertificateRequest.Builder.class); + com.google.cloud.certificatemanager.v1.DeleteCertificateRequest.class, com.google.cloud.certificatemanager.v1.DeleteCertificateRequest.Builder.class); } // Construct using com.google.cloud.certificatemanager.v1.DeleteCertificateRequest.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,14 +293,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_DeleteCertificateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DeleteCertificateRequest_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.DeleteCertificateRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.DeleteCertificateRequest getDefaultInstanceForType() { return com.google.cloud.certificatemanager.v1.DeleteCertificateRequest.getDefaultInstance(); } @@ -401,8 +314,7 @@ public com.google.cloud.certificatemanager.v1.DeleteCertificateRequest build() { @java.lang.Override public com.google.cloud.certificatemanager.v1.DeleteCertificateRequest buildPartial() { - com.google.cloud.certificatemanager.v1.DeleteCertificateRequest result = - new com.google.cloud.certificatemanager.v1.DeleteCertificateRequest(this); + com.google.cloud.certificatemanager.v1.DeleteCertificateRequest result = new com.google.cloud.certificatemanager.v1.DeleteCertificateRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,55 +324,51 @@ public com.google.cloud.certificatemanager.v1.DeleteCertificateRequest 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.certificatemanager.v1.DeleteCertificateRequest) { - return mergeFrom((com.google.cloud.certificatemanager.v1.DeleteCertificateRequest) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.DeleteCertificateRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.DeleteCertificateRequest other) { - if (other - == com.google.cloud.certificatemanager.v1.DeleteCertificateRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.DeleteCertificateRequest other) { + if (other == com.google.cloud.certificatemanager.v1.DeleteCertificateRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -475,41 +383,53 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.DeleteCertificateRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.DeleteCertificateRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object name_ = ""; /** - * - * *
      * Required. A name of the certificate to delete. Must be in the format
      * `projects/*/locations/*/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; @@ -518,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. A name of the certificate to delete. Must be in the format
      * `projects/*/locations/*/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 { @@ -543,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. A name of the certificate to delete. Must be in the format
      * `projects/*/locations/*/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. A name of the certificate to delete. Must be in the format
      * `projects/*/locations/*/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. A name of the certificate to delete. Must be in the format
      * `projects/*/locations/*/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; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -623,32 +527,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.DeleteCertificateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.DeleteCertificateRequest) - private static final com.google.cloud.certificatemanager.v1.DeleteCertificateRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.DeleteCertificateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.DeleteCertificateRequest(); } - public static com.google.cloud.certificatemanager.v1.DeleteCertificateRequest - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.DeleteCertificateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteCertificateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteCertificateRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCertificateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,8 +573,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.certificatemanager.v1.DeleteCertificateRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.DeleteCertificateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateRequestOrBuilder.java new file mode 100644 index 000000000000..698fa34f13ba --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteCertificateRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/certificatemanager/v1/certificate_manager.proto + +package com.google.cloud.certificatemanager.v1; + +public interface DeleteCertificateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.DeleteCertificateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A name of the certificate to delete. Must be in the format
+   * `projects/*/locations/*/certificates/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. A name of the certificate to delete. Must be in the format
+   * `projects/*/locations/*/certificates/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteDnsAuthorizationRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteDnsAuthorizationRequest.java similarity index 56% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteDnsAuthorizationRequest.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteDnsAuthorizationRequest.java index 8e72523c651a..3112f916f71e 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteDnsAuthorizationRequest.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteDnsAuthorizationRequest.java @@ -1,132 +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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Request for the `DeleteDnsAuthorization` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest} */ -public final class DeleteDnsAuthorizationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteDnsAuthorizationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest) DeleteDnsAuthorizationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteDnsAuthorizationRequest.newBuilder() to construct. private DeleteDnsAuthorizationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteDnsAuthorizationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteDnsAuthorizationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private DeleteDnsAuthorizationRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_DeleteDnsAuthorizationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DeleteDnsAuthorizationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_DeleteDnsAuthorizationRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DeleteDnsAuthorizationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest.class, - com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest.Builder.class); + com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest.class, com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. A name of the dns authorization to delete. Must be in the format
    * `projects/*/locations/*/dnsAuthorizations/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. A name of the dns authorization to delete. Must be in the format
    * `projects/*/locations/*/dnsAuthorizations/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,11 +108,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_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +125,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -205,16 +133,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.certificatemanager.v1.DeleteDnsAuthorizationRequest)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest other = - (com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest) obj; + com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest other = (com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,151 +155,135 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `DeleteDnsAuthorization` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest) com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_DeleteDnsAuthorizationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DeleteDnsAuthorizationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_DeleteDnsAuthorizationRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DeleteDnsAuthorizationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest.class, - com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest.Builder.class); + com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest.class, com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest.Builder.class); } - // Construct using - // com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest.newBuilder() + // Construct using com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,16 +293,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_DeleteDnsAuthorizationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DeleteDnsAuthorizationRequest_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest - getDefaultInstanceForType() { - return com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest - .getDefaultInstance(); + public com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest.getDefaultInstance(); } @java.lang.Override @@ -404,8 +314,7 @@ public com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest buil @java.lang.Override public com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest buildPartial() { - com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest result = - new com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest(this); + com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest result = new com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest(this); result.name_ = name_; onBuilt(); return result; @@ -415,56 +324,51 @@ public com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest 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.certificatemanager.v1.DeleteDnsAuthorizationRequest) { - return mergeFrom( - (com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest other) { - if (other - == com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest other) { + if (other == com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -479,41 +383,53 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object name_ = ""; /** - * - * *
      * Required. A name of the dns authorization to delete. Must be in the format
      * `projects/*/locations/*/dnsAuthorizations/*`.
      * 
* - * - * string name = 1 [(.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; @@ -522,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. A name of the dns authorization to delete. Must be in the format
      * `projects/*/locations/*/dnsAuthorizations/*`.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -547,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. A name of the dns authorization to delete. Must be in the format
      * `projects/*/locations/*/dnsAuthorizations/*`.
      * 
* - * - * 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. A name of the dns authorization to delete. Must be in the format
      * `projects/*/locations/*/dnsAuthorizations/*`.
      * 
* - * - * string 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. A name of the dns authorization to delete. Must be in the format
      * `projects/*/locations/*/dnsAuthorizations/*`.
      * 
* - * - * 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); } @@ -627,32 +527,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest) - private static final com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest(); } - public static com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDnsAuthorizationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteDnsAuthorizationRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDnsAuthorizationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,8 +573,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteDnsAuthorizationRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteDnsAuthorizationRequestOrBuilder.java new file mode 100644 index 000000000000..50e321682bf3 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DeleteDnsAuthorizationRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/certificatemanager/v1/certificate_manager.proto + +package com.google.cloud.certificatemanager.v1; + +public interface DeleteDnsAuthorizationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A name of the dns authorization to delete. Must be in the format
+   * `projects/*/locations/*/dnsAuthorizations/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. A name of the dns authorization to delete. Must be in the format
+   * `projects/*/locations/*/dnsAuthorizations/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorization.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorization.java similarity index 61% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorization.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorization.java index 715919b02dab..cad25d86eb21 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorization.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorization.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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * A DnsAuthorization resource describes a way to perform domain authorization
  * for certificate issuance.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.certificatemanager.v1.DnsAuthorization}
  */
-public final class DnsAuthorization extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DnsAuthorization extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.DnsAuthorization)
     DnsAuthorizationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DnsAuthorization.newBuilder() to construct.
   private DnsAuthorization(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DnsAuthorization() {
     name_ = "";
     description_ = "";
@@ -46,251 +28,110 @@ private DnsAuthorization() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DnsAuthorization();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  private DnsAuthorization(
-      com.google.protobuf.CodedInputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws com.google.protobuf.InvalidProtocolBufferException {
-    this();
-    if (extensionRegistry == null) {
-      throw new java.lang.NullPointerException();
-    }
-    int mutable_bitField0_ = 0;
-    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
-        com.google.protobuf.UnknownFieldSet.newBuilder();
-    try {
-      boolean done = false;
-      while (!done) {
-        int tag = input.readTag();
-        switch (tag) {
-          case 0:
-            done = true;
-            break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              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 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-          case 34:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              description_ = s;
-              break;
-            }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              domain_ = s;
-              break;
-            }
-          case 82:
-            {
-              com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.Builder
-                  subBuilder = null;
-              if (dnsResourceRecord_ != null) {
-                subBuilder = dnsResourceRecord_.toBuilder();
-              }
-              dnsResourceRecord_ =
-                  input.readMessage(
-                      com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(dnsResourceRecord_);
-                dnsResourceRecord_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
-            }
-        }
-      }
-    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-      throw e.setUnfinishedMessage(this);
-    } catch (com.google.protobuf.UninitializedMessageException e) {
-      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
-    } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
-    } finally {
-      this.unknownFields = unknownFields.build();
-      makeExtensionsImmutable();
-    }
-  }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.certificatemanager.v1.CertificateManagerProto
-        .internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_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 4:
         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.certificatemanager.v1.CertificateManagerProto
-        .internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_fieldAccessorTable
+    return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.certificatemanager.v1.DnsAuthorization.class,
-            com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder.class);
+            com.google.cloud.certificatemanager.v1.DnsAuthorization.class, com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder.class);
   }
 
-  public interface DnsResourceRecordOrBuilder
-      extends
+  public interface DnsResourceRecordOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Output only. Fully qualified name of the DNS Resource Record.
      * e.g. `_acme-challenge.example.com`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Output only. Fully qualified name of the DNS Resource Record.
      * e.g. `_acme-challenge.example.com`
      * 
* * 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. Type of the DNS Resource Record.
      * Currently always set to "CNAME".
      * 
* * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The type. */ java.lang.String getType(); /** - * - * *
      * Output only. Type of the DNS Resource Record.
      * Currently always set to "CNAME".
      * 
* * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * *
      * Output only. Data of the DNS Resource Record.
      * 
* * string data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The data. */ java.lang.String getData(); /** - * - * *
      * Output only. Data of the DNS Resource Record.
      * 
* * string data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for data. */ - com.google.protobuf.ByteString getDataBytes(); + com.google.protobuf.ByteString + getDataBytes(); } /** - * - * *
    * The structure describing the DNS Resource Record that needs to be added
    * to DNS configuration for the authorization to be usable by
@@ -299,16 +140,15 @@ public interface DnsResourceRecordOrBuilder
    *
    * Protobuf type {@code google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord}
    */
-  public static final class DnsResourceRecord extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class DnsResourceRecord extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord)
       DnsResourceRecordOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use DnsResourceRecord.newBuilder() to construct.
     private DnsResourceRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private DnsResourceRecord() {
       name_ = "";
       type_ = "";
@@ -317,103 +157,38 @@ private DnsResourceRecord() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new DnsResourceRecord();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
-    private DnsResourceRecord(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      this();
-      if (extensionRegistry == null) {
-        throw new java.lang.NullPointerException();
-      }
-      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
-          com.google.protobuf.UnknownFieldSet.newBuilder();
-      try {
-        boolean done = false;
-        while (!done) {
-          int tag = input.readTag();
-          switch (tag) {
-            case 0:
-              done = true;
-              break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-
-                name_ = s;
-                break;
-              }
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-
-                type_ = s;
-                break;
-              }
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-
-                data_ = s;
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
-              }
-          }
-        }
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(this);
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
-      } finally {
-        this.unknownFields = unknownFields.build();
-        makeExtensionsImmutable();
-      }
-    }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.certificatemanager.v1.CertificateManagerProto
-          .internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_DnsResourceRecord_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_DnsResourceRecord_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.certificatemanager.v1.CertificateManagerProto
-          .internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_DnsResourceRecord_fieldAccessorTable
+      return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_DnsResourceRecord_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.class,
-              com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.Builder
-                  .class);
+              com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.class, com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.Builder.class);
     }
 
     public static final int NAME_FIELD_NUMBER = 1;
     private volatile java.lang.Object name_;
     /**
-     *
-     *
      * 
      * Output only. Fully qualified name of the DNS Resource Record.
      * e.g. `_acme-challenge.example.com`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -422,30 +197,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. Fully qualified name of the DNS Resource Record.
      * e.g. `_acme-challenge.example.com`
      * 
* * 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 { @@ -456,15 +231,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object type_; /** - * - * *
      * Output only. Type of the DNS Resource Record.
      * Currently always set to "CNAME".
      * 
* * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The type. */ @java.lang.Override @@ -473,30 +245,30 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** - * - * *
      * Output only. Type of the DNS Resource Record.
      * Currently always set to "CNAME".
      * 
* * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -507,14 +279,11 @@ public com.google.protobuf.ByteString getTypeBytes() { public static final int DATA_FIELD_NUMBER = 3; private volatile java.lang.Object data_; /** - * - * *
      * Output only. Data of the DNS Resource Record.
      * 
* * string data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The data. */ @java.lang.Override @@ -523,29 +292,29 @@ public java.lang.String getData() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); data_ = s; return s; } } /** - * - * *
      * Output only. Data of the DNS Resource Record.
      * 
* * string data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for data. */ @java.lang.Override - public com.google.protobuf.ByteString getDataBytes() { + public com.google.protobuf.ByteString + getDataBytes() { java.lang.Object ref = data_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); data_ = b; return b; } else { @@ -554,7 +323,6 @@ public com.google.protobuf.ByteString getDataBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -566,7 +334,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -576,7 +345,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(data_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, data_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -594,7 +363,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(data_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, data_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -602,19 +371,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.certificatemanager.v1.DnsAuthorization.DnsResourceRecord)) { + if (!(obj instanceof com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord other = - (com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord) obj; + com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord other = (com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord) obj; - if (!getName().equals(other.getName())) return false; - if (!getType().equals(other.getType())) return false; - if (!getData().equals(other.getData())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getType() + .equals(other.getType())) return false; + if (!getData() + .equals(other.getData())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -631,106 +401,93 @@ public int hashCode() { hash = (53 * hash) + getType().hashCode(); hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord 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.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - 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.certificatemanager.v1.DnsAuthorization.DnsResourceRecord 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.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - 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.certificatemanager.v1.DnsAuthorization.DnsResourceRecord 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.certificatemanager.v1.DnsAuthorization.DnsResourceRecord prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder 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,8 +497,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The structure describing the DNS Resource Record that needs to be added
      * to DNS configuration for the authorization to be usable by
@@ -750,42 +505,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord)
         com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecordOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.certificatemanager.v1.CertificateManagerProto
-            .internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_DnsResourceRecord_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_DnsResourceRecord_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.certificatemanager.v1.CertificateManagerProto
-            .internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_DnsResourceRecord_fieldAccessorTable
+        return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_DnsResourceRecord_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.class,
-                com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.Builder
-                    .class);
+                com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.class, com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.newBuilder()
+      // Construct using com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.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) {}
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -799,22 +545,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.certificatemanager.v1.CertificateManagerProto
-            .internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_DnsResourceRecord_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_DnsResourceRecord_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord
-          getDefaultInstanceForType() {
-        return com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord
-            .getDefaultInstance();
+      public com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord getDefaultInstanceForType() {
+        return com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord build() {
-        com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord result =
-            buildPartial();
+        com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -822,10 +565,8 @@ public com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord
       }
 
       @java.lang.Override
-      public com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord
-          buildPartial() {
-        com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord result =
-            new com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord(this);
+      public com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord buildPartial() {
+        com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord result = new com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord(this);
         result.name_ = name_;
         result.type_ = type_;
         result.data_ = data_;
@@ -837,54 +578,46 @@ public com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.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.certificatemanager.v1.DnsAuthorization.DnsResourceRecord) {
-          return mergeFrom(
-              (com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord) other);
+        if (other instanceof com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord) {
+          return mergeFrom((com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord other) {
-        if (other
-            == com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord other) {
+        if (other == com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.getDefaultInstance()) return this;
         if (!other.getName().isEmpty()) {
           name_ = other.name_;
           onChanged();
@@ -897,7 +630,7 @@ public Builder mergeFrom(
           data_ = other.data_;
           onChanged();
         }
-        this.mergeUnknownFields(other.unknownFields);
+        this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
         return this;
       }
@@ -912,40 +645,63 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord parsedMessage =
-            null;
+        if (extensionRegistry == null) {
+          throw new java.lang.NullPointerException();
+        }
         try {
-          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+          boolean done = false;
+          while (!done) {
+            int tag = input.readTag();
+            switch (tag) {
+              case 0:
+                done = true;
+                break;
+              case 10: {
+                name_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+              case 18: {
+                type_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 18
+              case 26: {
+                data_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 26
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
+            } // switch (tag)
+          } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord)
-                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
-          if (parsedMessage != null) {
-            mergeFrom(parsedMessage);
-          }
-        }
+          onChanged();
+        } // finally
         return this;
       }
 
       private java.lang.Object name_ = "";
       /**
-       *
-       *
        * 
        * Output only. Fully qualified name of the DNS Resource Record.
        * e.g. `_acme-challenge.example.com`
        * 
* * 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; @@ -954,22 +710,21 @@ public java.lang.String getName() { } } /** - * - * *
        * Output only. Fully qualified name of the DNS Resource Record.
        * e.g. `_acme-challenge.example.com`
        * 
* * 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 { @@ -977,64 +732,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Output only. Fully qualified name of the DNS Resource Record.
        * e.g. `_acme-challenge.example.com`
        * 
* * 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. Fully qualified name of the DNS Resource Record.
        * e.g. `_acme-challenge.example.com`
        * 
* * 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. Fully qualified name of the DNS Resource Record.
        * e.g. `_acme-challenge.example.com`
        * 
* * 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; @@ -1042,21 +790,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object type_ = ""; /** - * - * *
        * Output only. Type of the DNS Resource Record.
        * Currently always set to "CNAME".
        * 
* * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -1065,22 +811,21 @@ public java.lang.String getType() { } } /** - * - * *
        * Output only. Type of the DNS Resource Record.
        * Currently always set to "CNAME".
        * 
* * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for type. */ - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -1088,64 +833,57 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
        * Output only. Type of the DNS Resource Record.
        * Currently always set to "CNAME".
        * 
* * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(java.lang.String value) { + public Builder setType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** - * - * *
        * Output only. Type of the DNS Resource Record.
        * Currently always set to "CNAME".
        * 
* * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** - * - * *
        * Output only. Type of the DNS Resource Record.
        * Currently always set to "CNAME".
        * 
* * string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes(com.google.protobuf.ByteString value) { + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; @@ -1153,20 +891,18 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object data_ = ""; /** - * - * *
        * Output only. Data of the DNS Resource Record.
        * 
* * string data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The data. */ public java.lang.String getData() { java.lang.Object ref = data_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); data_ = s; return s; @@ -1175,21 +911,20 @@ public java.lang.String getData() { } } /** - * - * *
        * Output only. Data of the DNS Resource Record.
        * 
* * string data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for data. */ - public com.google.protobuf.ByteString getDataBytes() { + public com.google.protobuf.ByteString + getDataBytes() { java.lang.Object ref = data_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); data_ = b; return b; } else { @@ -1197,66 +932,58 @@ public com.google.protobuf.ByteString getDataBytes() { } } /** - * - * *
        * Output only. Data of the DNS Resource Record.
        * 
* * string data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The data to set. * @return This builder for chaining. */ - public Builder setData(java.lang.String value) { + public Builder setData( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + data_ = value; onChanged(); return this; } /** - * - * *
        * Output only. Data of the DNS Resource Record.
        * 
* * string data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearData() { - + data_ = getDefaultInstance().getData(); onChanged(); return this; } /** - * - * *
        * Output only. Data of the DNS Resource Record.
        * 
* * string data = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for data to set. * @return This builder for chaining. */ - public Builder setDataBytes(com.google.protobuf.ByteString value) { + public Builder setDataBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + data_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1269,33 +996,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord) - private static final com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord(); + DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord(); } - public static com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DnsResourceRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DnsResourceRecord(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DnsResourceRecord parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1307,17 +1042,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * A user-defined name of the dns authorization. DnsAuthorization names must
    * be unique globally and match pattern
@@ -1325,7 +1058,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1334,15 +1066,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; } } /** - * - * *
    * A user-defined name of the dns authorization. DnsAuthorization names must
    * be unique globally and match pattern
@@ -1350,15 +1081,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1369,15 +1101,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The creation timestamp of a DnsAuthorization.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1385,15 +1113,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The creation timestamp of a DnsAuthorization.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -1401,14 +1125,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The creation timestamp of a DnsAuthorization.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1418,15 +1139,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The last update timestamp of a DnsAuthorization.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1434,15 +1151,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The last update timestamp of a DnsAuthorization.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -1450,14 +1163,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The last update timestamp of a DnsAuthorization.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1465,23 +1175,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_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.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_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_; } @@ -1490,30 +1201,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Set of labels associated with a DnsAuthorization.
    * 
* * map<string, string> labels = 4; */ + @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(); } /** - * - * *
    * Set of labels associated with a DnsAuthorization.
    * 
@@ -1521,12 +1230,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Set of labels associated with a DnsAuthorization.
    * 
@@ -1534,16 +1242,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @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; } /** - * - * *
    * Set of labels associated with a DnsAuthorization.
    * 
@@ -1551,11 +1259,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 4; */ @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(); } @@ -1565,14 +1274,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int DESCRIPTION_FIELD_NUMBER = 5; private volatile java.lang.Object description_; /** - * - * *
    * One or more paragraphs of text description of a DnsAuthorization.
    * 
* * string description = 5; - * * @return The description. */ @java.lang.Override @@ -1581,29 +1287,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; } } /** - * - * *
    * One or more paragraphs of text description of a DnsAuthorization.
    * 
* * string description = 5; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1614,18 +1320,14 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int DOMAIN_FIELD_NUMBER = 6; private volatile java.lang.Object domain_; /** - * - * *
-   * Required. Immutable. A domain which is being authorized. A DnsAuthorization resource covers a
-   * single domain and its wildcard, e.g. authorization for `example.com` can
-   * be used to issue certificates for `example.com` and `*.example.com`.
+   * Required. Immutable. A domain which is being authorized. A DnsAuthorization
+   * resource covers a single domain and its wildcard, e.g. authorization for
+   * `example.com` can be used to issue certificates for `example.com` and
+   * `*.example.com`.
    * 
* - * - * string domain = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string domain = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The domain. */ @java.lang.Override @@ -1634,33 +1336,32 @@ public java.lang.String getDomain() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); domain_ = s; return s; } } /** - * - * *
-   * Required. Immutable. A domain which is being authorized. A DnsAuthorization resource covers a
-   * single domain and its wildcard, e.g. authorization for `example.com` can
-   * be used to issue certificates for `example.com` and `*.example.com`.
+   * Required. Immutable. A domain which is being authorized. A DnsAuthorization
+   * resource covers a single domain and its wildcard, e.g. authorization for
+   * `example.com` can be used to issue certificates for `example.com` and
+   * `*.example.com`.
    * 
* - * - * string domain = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string domain = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The bytes for domain. */ @java.lang.Override - public com.google.protobuf.ByteString getDomainBytes() { + public com.google.protobuf.ByteString + getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); domain_ = b; return b; } else { @@ -1669,19 +1370,14 @@ public com.google.protobuf.ByteString getDomainBytes() { } public static final int DNS_RESOURCE_RECORD_FIELD_NUMBER = 10; - private com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - dnsResourceRecord_; + private com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dnsResourceRecord_; /** - * - * *
-   * Output only. DNS Resource Record that needs to be added to DNS configuration.
+   * Output only. DNS Resource Record that needs to be added to DNS
+   * configuration.
    * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the dnsResourceRecord field is set. */ @java.lang.Override @@ -1689,45 +1385,32 @@ public boolean hasDnsResourceRecord() { return dnsResourceRecord_ != null; } /** - * - * *
-   * Output only. DNS Resource Record that needs to be added to DNS configuration.
+   * Output only. DNS Resource Record that needs to be added to DNS
+   * configuration.
    * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The dnsResourceRecord. */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - getDnsResourceRecord() { - return dnsResourceRecord_ == null - ? com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - .getDefaultInstance() - : dnsResourceRecord_; + public com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord getDnsResourceRecord() { + return dnsResourceRecord_ == null ? com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.getDefaultInstance() : dnsResourceRecord_; } /** - * - * *
-   * Output only. DNS Resource Record that needs to be added to DNS configuration.
+   * Output only. DNS Resource Record that needs to be added to DNS
+   * configuration.
    * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecordOrBuilder - getDnsResourceRecordOrBuilder() { + public com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecordOrBuilder getDnsResourceRecordOrBuilder() { return getDnsResourceRecord(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1739,7 +1422,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -1749,8 +1433,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } @@ -1760,7 +1448,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dnsResourceRecord_ != null) { output.writeMessage(10, getDnsResourceRecord()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1773,20 +1461,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, 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(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, 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(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); @@ -1795,9 +1485,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, domain_); } if (dnsResourceRecord_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDnsResourceRecord()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getDnsResourceRecord()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1805,31 +1496,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.certificatemanager.v1.DnsAuthorization)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.DnsAuthorization other = - (com.google.cloud.certificatemanager.v1.DnsAuthorization) obj; + com.google.cloud.certificatemanager.v1.DnsAuthorization other = (com.google.cloud.certificatemanager.v1.DnsAuthorization) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getDomain().equals(other.getDomain())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; if (hasDnsResourceRecord() != other.hasDnsResourceRecord()) return false; if (hasDnsResourceRecord()) { - if (!getDnsResourceRecord().equals(other.getDnsResourceRecord())) return false; + if (!getDnsResourceRecord() + .equals(other.getDnsResourceRecord())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1862,110 +1559,102 @@ public int hashCode() { hash = (37 * hash) + DNS_RESOURCE_RECORD_FIELD_NUMBER; hash = (53 * hash) + getDnsResourceRecord().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.DnsAuthorization parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.DnsAuthorization parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.DnsAuthorization parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.DnsAuthorization parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.DnsAuthorization parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.DnsAuthorization parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.DnsAuthorization parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.DnsAuthorization parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.DnsAuthorization parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.DnsAuthorization parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.DnsAuthorization parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.DnsAuthorization parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.DnsAuthorization parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.DnsAuthorization parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.DnsAuthorization prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.DnsAuthorization prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 DnsAuthorization resource describes a way to perform domain authorization
    * for certificate issuance.
@@ -1973,59 +1662,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.certificatemanager.v1.DnsAuthorization}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.DnsAuthorization)
       com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.certificatemanager.v1.CertificateManagerProto
-          .internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           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 4:
           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.certificatemanager.v1.CertificateManagerProto
-          .internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_fieldAccessorTable
+      return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.certificatemanager.v1.DnsAuthorization.class,
-              com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder.class);
+              com.google.cloud.certificatemanager.v1.DnsAuthorization.class, com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder.class);
     }
 
     // Construct using com.google.cloud.certificatemanager.v1.DnsAuthorization.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) {}
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2058,9 +1743,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.certificatemanager.v1.CertificateManagerProto
-          .internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_DnsAuthorization_descriptor;
     }
 
     @java.lang.Override
@@ -2079,8 +1764,7 @@ public com.google.cloud.certificatemanager.v1.DnsAuthorization build() {
 
     @java.lang.Override
     public com.google.cloud.certificatemanager.v1.DnsAuthorization buildPartial() {
-      com.google.cloud.certificatemanager.v1.DnsAuthorization result =
-          new com.google.cloud.certificatemanager.v1.DnsAuthorization(this);
+      com.google.cloud.certificatemanager.v1.DnsAuthorization result = new com.google.cloud.certificatemanager.v1.DnsAuthorization(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (createTimeBuilder_ == null) {
@@ -2110,39 +1794,38 @@ public com.google.cloud.certificatemanager.v1.DnsAuthorization buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.certificatemanager.v1.DnsAuthorization) {
-        return mergeFrom((com.google.cloud.certificatemanager.v1.DnsAuthorization) other);
+        return mergeFrom((com.google.cloud.certificatemanager.v1.DnsAuthorization)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2150,8 +1833,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.certificatemanager.v1.DnsAuthorization other) {
-      if (other == com.google.cloud.certificatemanager.v1.DnsAuthorization.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.certificatemanager.v1.DnsAuthorization.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -2162,7 +1844,8 @@ public Builder mergeFrom(com.google.cloud.certificatemanager.v1.DnsAuthorization
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
         onChanged();
@@ -2174,7 +1857,7 @@ public Builder mergeFrom(com.google.cloud.certificatemanager.v1.DnsAuthorization
       if (other.hasDnsResourceRecord()) {
         mergeDnsResourceRecord(other.getDnsResourceRecord());
       }
-      this.mergeUnknownFields(other.unknownFields);
+      this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
     }
@@ -2189,27 +1872,80 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.certificatemanager.v1.DnsAuthorization parsedMessage = null;
+      if (extensionRegistry == null) {
+        throw new java.lang.NullPointerException();
+      }
       try {
-        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+        boolean done = false;
+        while (!done) {
+          int tag = input.readTag();
+          switch (tag) {
+            case 0:
+              done = true;
+              break;
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 26
+            case 34: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              break;
+            } // case 34
+            case 42: {
+              description_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 42
+            case 50: {
+              domain_ = input.readStringRequireUtf8();
+
+              break;
+            } // case 50
+            case 82: {
+              input.readMessage(
+                  getDnsResourceRecordFieldBuilder().getBuilder(),
+                  extensionRegistry);
+
+              break;
+            } // case 82
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
+          } // switch (tag)
+        } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.certificatemanager.v1.DnsAuthorization) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
-        if (parsedMessage != null) {
-          mergeFrom(parsedMessage);
-        }
-      }
+        onChanged();
+      } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * A user-defined name of the dns authorization. DnsAuthorization names must
      * be unique globally and match pattern
@@ -2217,13 +1953,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2232,8 +1968,6 @@ public java.lang.String getName() { } } /** - * - * *
      * A user-defined name of the dns authorization. DnsAuthorization names must
      * be unique globally and match pattern
@@ -2241,14 +1975,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2256,8 +1991,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * A user-defined name of the dns authorization. DnsAuthorization names must
      * be unique globally and match pattern
@@ -2265,22 +1998,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * A user-defined name of the dns authorization. DnsAuthorization names must
      * be unique globally and match pattern
@@ -2288,18 +2019,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * A user-defined name of the dns authorization. DnsAuthorization names must
      * be unique globally and match pattern
@@ -2307,16 +2035,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2324,58 +2052,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The creation timestamp of a DnsAuthorization.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The creation timestamp of a DnsAuthorization.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The creation timestamp of a DnsAuthorization.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2391,17 +2100,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation timestamp of a DnsAuthorization.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2412,21 +2118,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The creation timestamp of a DnsAuthorization.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2438,15 +2140,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation timestamp of a DnsAuthorization.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2460,64 +2158,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The creation timestamp of a DnsAuthorization.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The creation timestamp of a DnsAuthorization.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The creation timestamp of a DnsAuthorization.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2525,58 +2207,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The last update timestamp of a DnsAuthorization.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The last update timestamp of a DnsAuthorization.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The last update timestamp of a DnsAuthorization.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2592,17 +2255,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update timestamp of a DnsAuthorization.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2613,21 +2273,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The last update timestamp of a DnsAuthorization.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2639,15 +2295,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update timestamp of a DnsAuthorization.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2661,84 +2313,69 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The last update timestamp of a DnsAuthorization.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The last update timestamp of a DnsAuthorization.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The last update timestamp of a DnsAuthorization.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - 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(); @@ -2750,30 +2387,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Set of labels associated with a DnsAuthorization.
      * 
* * map<string, string> labels = 4; */ + @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(); } /** - * - * *
      * Set of labels associated with a DnsAuthorization.
      * 
@@ -2781,12 +2416,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Set of labels associated with a DnsAuthorization.
      * 
@@ -2794,17 +2428,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @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; } /** - * - * *
      * Set of labels associated with a DnsAuthorization.
      * 
@@ -2812,11 +2445,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @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(); } @@ -2824,80 +2458,81 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Set of labels associated with a DnsAuthorization.
      * 
* * map<string, string> labels = 4; */ - 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(); } /** - * - * *
      * Set of labels associated with a DnsAuthorization.
      * 
* * map<string, string> labels = 4; */ - 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; } /** - * - * *
      * Set of labels associated with a DnsAuthorization.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private java.lang.Object description_ = ""; /** - * - * *
      * One or more paragraphs of text description of a DnsAuthorization.
      * 
* * string description = 5; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2906,21 +2541,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * One or more paragraphs of text description of a DnsAuthorization.
      * 
* * string description = 5; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2928,61 +2562,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * One or more paragraphs of text description of a DnsAuthorization.
      * 
* * string description = 5; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * One or more paragraphs of text description of a DnsAuthorization.
      * 
* * string description = 5; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * One or more paragraphs of text description of a DnsAuthorization.
      * 
* * string description = 5; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2990,24 +2617,21 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object domain_ = ""; /** - * - * *
-     * Required. Immutable. A domain which is being authorized. A DnsAuthorization resource covers a
-     * single domain and its wildcard, e.g. authorization for `example.com` can
-     * be used to issue certificates for `example.com` and `*.example.com`.
+     * Required. Immutable. A domain which is being authorized. A DnsAuthorization
+     * resource covers a single domain and its wildcard, e.g. authorization for
+     * `example.com` can be used to issue certificates for `example.com` and
+     * `*.example.com`.
      * 
* - * - * string domain = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string domain = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The domain. */ public java.lang.String getDomain() { java.lang.Object ref = domain_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); domain_ = s; return s; @@ -3016,25 +2640,23 @@ public java.lang.String getDomain() { } } /** - * - * *
-     * Required. Immutable. A domain which is being authorized. A DnsAuthorization resource covers a
-     * single domain and its wildcard, e.g. authorization for `example.com` can
-     * be used to issue certificates for `example.com` and `*.example.com`.
+     * Required. Immutable. A domain which is being authorized. A DnsAuthorization
+     * resource covers a single domain and its wildcard, e.g. authorization for
+     * `example.com` can be used to issue certificates for `example.com` and
+     * `*.example.com`.
      * 
* - * - * string domain = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string domain = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The bytes for domain. */ - public com.google.protobuf.ByteString getDomainBytes() { + public com.google.protobuf.ByteString + getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); domain_ = b; return b; } else { @@ -3042,138 +2664,108 @@ public com.google.protobuf.ByteString getDomainBytes() { } } /** - * - * *
-     * Required. Immutable. A domain which is being authorized. A DnsAuthorization resource covers a
-     * single domain and its wildcard, e.g. authorization for `example.com` can
-     * be used to issue certificates for `example.com` and `*.example.com`.
+     * Required. Immutable. A domain which is being authorized. A DnsAuthorization
+     * resource covers a single domain and its wildcard, e.g. authorization for
+     * `example.com` can be used to issue certificates for `example.com` and
+     * `*.example.com`.
      * 
* - * - * string domain = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string domain = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The domain to set. * @return This builder for chaining. */ - public Builder setDomain(java.lang.String value) { + public Builder setDomain( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + domain_ = value; onChanged(); return this; } /** - * - * *
-     * Required. Immutable. A domain which is being authorized. A DnsAuthorization resource covers a
-     * single domain and its wildcard, e.g. authorization for `example.com` can
-     * be used to issue certificates for `example.com` and `*.example.com`.
+     * Required. Immutable. A domain which is being authorized. A DnsAuthorization
+     * resource covers a single domain and its wildcard, e.g. authorization for
+     * `example.com` can be used to issue certificates for `example.com` and
+     * `*.example.com`.
      * 
* - * - * string domain = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string domain = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearDomain() { - + domain_ = getDefaultInstance().getDomain(); onChanged(); return this; } /** - * - * *
-     * Required. Immutable. A domain which is being authorized. A DnsAuthorization resource covers a
-     * single domain and its wildcard, e.g. authorization for `example.com` can
-     * be used to issue certificates for `example.com` and `*.example.com`.
+     * Required. Immutable. A domain which is being authorized. A DnsAuthorization
+     * resource covers a single domain and its wildcard, e.g. authorization for
+     * `example.com` can be used to issue certificates for `example.com` and
+     * `*.example.com`.
      * 
* - * - * string domain = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string domain = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The bytes for domain to set. * @return This builder for chaining. */ - public Builder setDomainBytes(com.google.protobuf.ByteString value) { + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + domain_ = value; onChanged(); return this; } - private com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - dnsResourceRecord_; + private com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dnsResourceRecord_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord, - com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.Builder, - com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecordOrBuilder> - dnsResourceRecordBuilder_; + com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord, com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.Builder, com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecordOrBuilder> dnsResourceRecordBuilder_; /** - * - * *
-     * Output only. DNS Resource Record that needs to be added to DNS configuration.
+     * Output only. DNS Resource Record that needs to be added to DNS
+     * configuration.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the dnsResourceRecord field is set. */ public boolean hasDnsResourceRecord() { return dnsResourceRecordBuilder_ != null || dnsResourceRecord_ != null; } /** - * - * *
-     * Output only. DNS Resource Record that needs to be added to DNS configuration.
+     * Output only. DNS Resource Record that needs to be added to DNS
+     * configuration.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The dnsResourceRecord. */ - public com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - getDnsResourceRecord() { + public com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord getDnsResourceRecord() { if (dnsResourceRecordBuilder_ == null) { - return dnsResourceRecord_ == null - ? com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - .getDefaultInstance() - : dnsResourceRecord_; + return dnsResourceRecord_ == null ? com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.getDefaultInstance() : dnsResourceRecord_; } else { return dnsResourceRecordBuilder_.getMessage(); } } /** - * - * *
-     * Output only. DNS Resource Record that needs to be added to DNS configuration.
+     * Output only. DNS Resource Record that needs to be added to DNS
+     * configuration.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDnsResourceRecord( - com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord value) { + public Builder setDnsResourceRecord(com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord value) { if (dnsResourceRecordBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3187,19 +2779,15 @@ public Builder setDnsResourceRecord( return this; } /** - * - * *
-     * Output only. DNS Resource Record that needs to be added to DNS configuration.
+     * Output only. DNS Resource Record that needs to be added to DNS
+     * configuration.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDnsResourceRecord( - com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.Builder - builderForValue) { + com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.Builder builderForValue) { if (dnsResourceRecordBuilder_ == null) { dnsResourceRecord_ = builderForValue.build(); onChanged(); @@ -3210,25 +2798,18 @@ public Builder setDnsResourceRecord( return this; } /** - * - * *
-     * Output only. DNS Resource Record that needs to be added to DNS configuration.
+     * Output only. DNS Resource Record that needs to be added to DNS
+     * configuration.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeDnsResourceRecord( - com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord value) { + public Builder mergeDnsResourceRecord(com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord value) { if (dnsResourceRecordBuilder_ == null) { if (dnsResourceRecord_ != null) { dnsResourceRecord_ = - com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.newBuilder( - dnsResourceRecord_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.newBuilder(dnsResourceRecord_).mergeFrom(value).buildPartial(); } else { dnsResourceRecord_ = value; } @@ -3240,15 +2821,12 @@ public Builder mergeDnsResourceRecord( return this; } /** - * - * *
-     * Output only. DNS Resource Record that needs to be added to DNS configuration.
+     * Output only. DNS Resource Record that needs to be added to DNS
+     * configuration.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDnsResourceRecord() { if (dnsResourceRecordBuilder_ == null) { @@ -3262,74 +2840,58 @@ public Builder clearDnsResourceRecord() { return this; } /** - * - * *
-     * Output only. DNS Resource Record that needs to be added to DNS configuration.
+     * Output only. DNS Resource Record that needs to be added to DNS
+     * configuration.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.Builder - getDnsResourceRecordBuilder() { - + public com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.Builder getDnsResourceRecordBuilder() { + onChanged(); return getDnsResourceRecordFieldBuilder().getBuilder(); } /** - * - * *
-     * Output only. DNS Resource Record that needs to be added to DNS configuration.
+     * Output only. DNS Resource Record that needs to be added to DNS
+     * configuration.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecordOrBuilder - getDnsResourceRecordOrBuilder() { + public com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecordOrBuilder getDnsResourceRecordOrBuilder() { if (dnsResourceRecordBuilder_ != null) { return dnsResourceRecordBuilder_.getMessageOrBuilder(); } else { - return dnsResourceRecord_ == null - ? com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord - .getDefaultInstance() - : dnsResourceRecord_; + return dnsResourceRecord_ == null ? + com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.getDefaultInstance() : dnsResourceRecord_; } } /** - * - * *
-     * Output only. DNS Resource Record that needs to be added to DNS configuration.
+     * Output only. DNS Resource Record that needs to be added to DNS
+     * configuration.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord, - com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.Builder, - com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecordOrBuilder> + com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord, com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.Builder, com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecordOrBuilder> getDnsResourceRecordFieldBuilder() { if (dnsResourceRecordBuilder_ == null) { - dnsResourceRecordBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord, - com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.Builder, - com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecordOrBuilder>( - getDnsResourceRecord(), getParentForChildren(), isClean()); + dnsResourceRecordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord, com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord.Builder, com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecordOrBuilder>( + getDnsResourceRecord(), + getParentForChildren(), + isClean()); dnsResourceRecord_ = null; } return dnsResourceRecordBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3339,12 +2901,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.DnsAuthorization) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.DnsAuthorization) private static final com.google.cloud.certificatemanager.v1.DnsAuthorization DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.DnsAuthorization(); } @@ -3353,16 +2915,27 @@ public static com.google.cloud.certificatemanager.v1.DnsAuthorization getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DnsAuthorization parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DnsAuthorization(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DnsAuthorization parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3377,4 +2950,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.certificatemanager.v1.DnsAuthorization getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorizationName.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorizationName.java similarity index 100% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorizationName.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorizationName.java diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorizationOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorizationOrBuilder.java similarity index 60% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorizationOrBuilder.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorizationOrBuilder.java index ebd4e880ae48..6335aeaa1dcb 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorizationOrBuilder.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/DnsAuthorizationOrBuilder.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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; -public interface DnsAuthorizationOrBuilder - extends +public interface DnsAuthorizationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.DnsAuthorization) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A user-defined name of the dns authorization. DnsAuthorization names must
    * be unique globally and match pattern
@@ -33,13 +15,10 @@ public interface DnsAuthorizationOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * A user-defined name of the dns authorization. DnsAuthorization names must
    * be unique globally and match pattern
@@ -47,90 +26,66 @@ public interface DnsAuthorizationOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The creation timestamp of a DnsAuthorization.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The creation timestamp of a DnsAuthorization.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The creation timestamp of a DnsAuthorization.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The last update timestamp of a DnsAuthorization.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The last update timestamp of a DnsAuthorization.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The last update timestamp of a DnsAuthorization.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Set of labels associated with a DnsAuthorization.
    * 
@@ -139,31 +94,30 @@ public interface DnsAuthorizationOrBuilder */ int getLabelsCount(); /** - * - * *
    * Set of labels associated with a DnsAuthorization.
    * 
* * map<string, string> labels = 4; */ - 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(); /** - * - * *
    * Set of labels associated with a DnsAuthorization.
    * 
* * map<string, string> labels = 4; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Set of labels associated with a DnsAuthorization.
    * 
@@ -172,118 +126,94 @@ public interface DnsAuthorizationOrBuilder */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Set of labels associated with a DnsAuthorization.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * One or more paragraphs of text description of a DnsAuthorization.
    * 
* * string description = 5; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * One or more paragraphs of text description of a DnsAuthorization.
    * 
* * string description = 5; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
-   * Required. Immutable. A domain which is being authorized. A DnsAuthorization resource covers a
-   * single domain and its wildcard, e.g. authorization for `example.com` can
-   * be used to issue certificates for `example.com` and `*.example.com`.
+   * Required. Immutable. A domain which is being authorized. A DnsAuthorization
+   * resource covers a single domain and its wildcard, e.g. authorization for
+   * `example.com` can be used to issue certificates for `example.com` and
+   * `*.example.com`.
    * 
* - * - * string domain = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string domain = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The domain. */ java.lang.String getDomain(); /** - * - * *
-   * Required. Immutable. A domain which is being authorized. A DnsAuthorization resource covers a
-   * single domain and its wildcard, e.g. authorization for `example.com` can
-   * be used to issue certificates for `example.com` and `*.example.com`.
+   * Required. Immutable. A domain which is being authorized. A DnsAuthorization
+   * resource covers a single domain and its wildcard, e.g. authorization for
+   * `example.com` can be used to issue certificates for `example.com` and
+   * `*.example.com`.
    * 
* - * - * string domain = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string domain = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The bytes for domain. */ - com.google.protobuf.ByteString getDomainBytes(); + com.google.protobuf.ByteString + getDomainBytes(); /** - * - * *
-   * Output only. DNS Resource Record that needs to be added to DNS configuration.
+   * Output only. DNS Resource Record that needs to be added to DNS
+   * configuration.
    * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the dnsResourceRecord field is set. */ boolean hasDnsResourceRecord(); /** - * - * *
-   * Output only. DNS Resource Record that needs to be added to DNS configuration.
+   * Output only. DNS Resource Record that needs to be added to DNS
+   * configuration.
    * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The dnsResourceRecord. */ com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord getDnsResourceRecord(); /** - * - * *
-   * Output only. DNS Resource Record that needs to be added to DNS configuration.
+   * Output only. DNS Resource Record that needs to be added to DNS
+   * configuration.
    * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord dns_resource_record = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecordOrBuilder - getDnsResourceRecordOrBuilder(); + com.google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecordOrBuilder getDnsResourceRecordOrBuilder(); } diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateIssuanceConfigRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateIssuanceConfigRequest.java new file mode 100644 index 000000000000..d7394fd97e5b --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateIssuanceConfigRequest.java @@ -0,0 +1,581 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +/** + *
+ * Request for the `GetCertificateIssuanceConfig` method.
+ * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest} + */ +public final class GetCertificateIssuanceConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest) + GetCertificateIssuanceConfigRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetCertificateIssuanceConfigRequest.newBuilder() to construct. + private GetCertificateIssuanceConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetCertificateIssuanceConfigRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetCertificateIssuanceConfigRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_GetCertificateIssuanceConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_GetCertificateIssuanceConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest.class, com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. A name of the certificate issuance config to describe. Must be in
+   * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. A name of the certificate issuance config to describe. Must be in
+   * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * 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() { + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest other = (com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest 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.certificatemanager.v1.GetCertificateIssuanceConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest 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.certificatemanager.v1.GetCertificateIssuanceConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the `GetCertificateIssuanceConfig` method.
+   * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest) + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_GetCertificateIssuanceConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_GetCertificateIssuanceConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest.class, com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_GetCertificateIssuanceConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest build() { + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest buildPartial() { + com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest result = new com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest) { + return mergeFrom((com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest other) { + if (other == com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. A name of the certificate issuance config to describe. Must be in
+     * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. A name of the certificate issuance config to describe. Must be in
+     * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. A name of the certificate issuance config to describe. Must be in
+     * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. A name of the certificate issuance config to describe. Must be in
+     * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * 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. A name of the certificate issuance config to describe. Must be in
+     * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest) + private static final com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest(); + } + + public static com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCertificateIssuanceConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateIssuanceConfigRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateIssuanceConfigRequestOrBuilder.java new file mode 100644 index 000000000000..373eedd2087e --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateIssuanceConfigRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +public interface GetCertificateIssuanceConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A name of the certificate issuance config to describe. Must be in
+   * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. A name of the certificate issuance config to describe. Must be in
+   * the format `projects/*/locations/*/certificateIssuanceConfigs/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapEntryRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapEntryRequest.java similarity index 56% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapEntryRequest.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapEntryRequest.java index fb97a16ade67..a78078ec812c 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapEntryRequest.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapEntryRequest.java @@ -1,132 +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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Request for the `GetCertificateMapEntry` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest} */ -public final class GetCertificateMapEntryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetCertificateMapEntryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest) GetCertificateMapEntryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetCertificateMapEntryRequest.newBuilder() to construct. private GetCertificateMapEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetCertificateMapEntryRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetCertificateMapEntryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private GetCertificateMapEntryRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_GetCertificateMapEntryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_GetCertificateMapEntryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_GetCertificateMapEntryRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_GetCertificateMapEntryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest.class, - com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest.Builder.class); + com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest.class, com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. A name of the certificate map entry to describe. Must be in the
    * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. A name of the certificate map entry to describe. Must be in the
    * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,11 +108,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_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +125,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -205,16 +133,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.certificatemanager.v1.GetCertificateMapEntryRequest)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest other = - (com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest) obj; + com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest other = (com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,151 +155,135 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `GetCertificateMapEntry` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest) com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_GetCertificateMapEntryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_GetCertificateMapEntryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_GetCertificateMapEntryRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_GetCertificateMapEntryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest.class, - com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest.Builder.class); + com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest.class, com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest.Builder.class); } - // Construct using - // com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest.newBuilder() + // Construct using com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,16 +293,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_GetCertificateMapEntryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_GetCertificateMapEntryRequest_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest - getDefaultInstanceForType() { - return com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest - .getDefaultInstance(); + public com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest.getDefaultInstance(); } @java.lang.Override @@ -404,8 +314,7 @@ public com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest buil @java.lang.Override public com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest buildPartial() { - com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest result = - new com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest(this); + com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest result = new com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest(this); result.name_ = name_; onBuilt(); return result; @@ -415,56 +324,51 @@ public com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest 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.certificatemanager.v1.GetCertificateMapEntryRequest) { - return mergeFrom( - (com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest other) { - if (other - == com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest other) { + if (other == com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -479,41 +383,53 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object name_ = ""; /** - * - * *
      * Required. A name of the certificate map entry to describe. Must be in the
      * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
      * 
* - * - * string name = 1 [(.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; @@ -522,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. A name of the certificate map entry to describe. Must be in the
      * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
      * 
* - * - * string name = 1 [(.google.api.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 { @@ -547,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. A name of the certificate map entry to describe. Must be in the
      * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
      * 
* - * - * 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. A name of the certificate map entry to describe. Must be in the
      * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
      * 
* - * - * string 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. A name of the certificate map entry to describe. Must be in the
      * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
      * 
* - * - * 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); } @@ -627,32 +527,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest) - private static final com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest(); } - public static com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCertificateMapEntryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCertificateMapEntryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCertificateMapEntryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,8 +573,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapEntryRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapEntryRequestOrBuilder.java new file mode 100644 index 000000000000..6fd9bf9bd65e --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapEntryRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/certificatemanager/v1/certificate_manager.proto + +package com.google.cloud.certificatemanager.v1; + +public interface GetCertificateMapEntryRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A name of the certificate map entry to describe. Must be in the
+   * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. A name of the certificate map entry to describe. Must be in the
+   * format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapRequest.java similarity index 57% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapRequest.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapRequest.java index 6705ffe95308..9af72428ede7 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapRequest.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapRequest.java @@ -1,132 +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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Request for the `GetCertificateMap` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.GetCertificateMapRequest} */ -public final class GetCertificateMapRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetCertificateMapRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.GetCertificateMapRequest) GetCertificateMapRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetCertificateMapRequest.newBuilder() to construct. private GetCertificateMapRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetCertificateMapRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetCertificateMapRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private GetCertificateMapRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_GetCertificateMapRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_GetCertificateMapRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_GetCertificateMapRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_GetCertificateMapRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.GetCertificateMapRequest.class, - com.google.cloud.certificatemanager.v1.GetCertificateMapRequest.Builder.class); + com.google.cloud.certificatemanager.v1.GetCertificateMapRequest.class, com.google.cloud.certificatemanager.v1.GetCertificateMapRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. A name of the certificate map to describe. Must be in the format
    * `projects/*/locations/*/certificateMaps/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. A name of the certificate map to describe. Must be in the format
    * `projects/*/locations/*/certificateMaps/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,11 +108,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_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +125,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -205,16 +133,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.certificatemanager.v1.GetCertificateMapRequest)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.GetCertificateMapRequest other = - (com.google.cloud.certificatemanager.v1.GetCertificateMapRequest) obj; + com.google.cloud.certificatemanager.v1.GetCertificateMapRequest other = (com.google.cloud.certificatemanager.v1.GetCertificateMapRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,149 +155,135 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.GetCertificateMapRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.GetCertificateMapRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.GetCertificateMapRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.GetCertificateMapRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.GetCertificateMapRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.GetCertificateMapRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.GetCertificateMapRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.GetCertificateMapRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.GetCertificateMapRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.GetCertificateMapRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.GetCertificateMapRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.GetCertificateMapRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.GetCertificateMapRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.GetCertificateMapRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.GetCertificateMapRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.GetCertificateMapRequest prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.GetCertificateMapRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `GetCertificateMap` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.GetCertificateMapRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.GetCertificateMapRequest) com.google.cloud.certificatemanager.v1.GetCertificateMapRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_GetCertificateMapRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_GetCertificateMapRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_GetCertificateMapRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_GetCertificateMapRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.GetCertificateMapRequest.class, - com.google.cloud.certificatemanager.v1.GetCertificateMapRequest.Builder.class); + com.google.cloud.certificatemanager.v1.GetCertificateMapRequest.class, com.google.cloud.certificatemanager.v1.GetCertificateMapRequest.Builder.class); } // Construct using com.google.cloud.certificatemanager.v1.GetCertificateMapRequest.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,14 +293,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_GetCertificateMapRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_GetCertificateMapRequest_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.GetCertificateMapRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.GetCertificateMapRequest getDefaultInstanceForType() { return com.google.cloud.certificatemanager.v1.GetCertificateMapRequest.getDefaultInstance(); } @@ -401,8 +314,7 @@ public com.google.cloud.certificatemanager.v1.GetCertificateMapRequest build() { @java.lang.Override public com.google.cloud.certificatemanager.v1.GetCertificateMapRequest buildPartial() { - com.google.cloud.certificatemanager.v1.GetCertificateMapRequest result = - new com.google.cloud.certificatemanager.v1.GetCertificateMapRequest(this); + com.google.cloud.certificatemanager.v1.GetCertificateMapRequest result = new com.google.cloud.certificatemanager.v1.GetCertificateMapRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,55 +324,51 @@ public com.google.cloud.certificatemanager.v1.GetCertificateMapRequest 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.certificatemanager.v1.GetCertificateMapRequest) { - return mergeFrom((com.google.cloud.certificatemanager.v1.GetCertificateMapRequest) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.GetCertificateMapRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.GetCertificateMapRequest other) { - if (other - == com.google.cloud.certificatemanager.v1.GetCertificateMapRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.GetCertificateMapRequest other) { + if (other == com.google.cloud.certificatemanager.v1.GetCertificateMapRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -475,41 +383,53 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.GetCertificateMapRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.GetCertificateMapRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object name_ = ""; /** - * - * *
      * Required. A name of the certificate map to describe. Must be in the format
      * `projects/*/locations/*/certificateMaps/*`.
      * 
* - * - * string name = 1 [(.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; @@ -518,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. A name of the certificate map to describe. Must be in the format
      * `projects/*/locations/*/certificateMaps/*`.
      * 
* - * - * string name = 1 [(.google.api.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,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. A name of the certificate map to describe. Must be in the format
      * `projects/*/locations/*/certificateMaps/*`.
      * 
* - * - * 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. A name of the certificate map to describe. Must be in the format
      * `projects/*/locations/*/certificateMaps/*`.
      * 
* - * - * string 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. A name of the certificate map to describe. Must be in the format
      * `projects/*/locations/*/certificateMaps/*`.
      * 
* - * - * 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); } @@ -623,32 +527,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.GetCertificateMapRequest) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.GetCertificateMapRequest) - private static final com.google.cloud.certificatemanager.v1.GetCertificateMapRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.GetCertificateMapRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.GetCertificateMapRequest(); } - public static com.google.cloud.certificatemanager.v1.GetCertificateMapRequest - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.GetCertificateMapRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCertificateMapRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCertificateMapRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCertificateMapRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,8 +573,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.certificatemanager.v1.GetCertificateMapRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.GetCertificateMapRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapRequestOrBuilder.java new file mode 100644 index 000000000000..f98e3a0a1136 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateMapRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/certificatemanager/v1/certificate_manager.proto + +package com.google.cloud.certificatemanager.v1; + +public interface GetCertificateMapRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.GetCertificateMapRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A name of the certificate map to describe. Must be in the format
+   * `projects/*/locations/*/certificateMaps/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. A name of the certificate map to describe. Must be in the format
+   * `projects/*/locations/*/certificateMaps/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateRequest.java similarity index 58% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateRequest.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateRequest.java index 849bed95b9b3..70ec07f3c27a 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateRequest.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateRequest.java @@ -1,132 +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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Request for the `GetCertificate` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.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.certificatemanager.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) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_GetCertificateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_GetCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_GetCertificateRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_GetCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.GetCertificateRequest.class, - com.google.cloud.certificatemanager.v1.GetCertificateRequest.Builder.class); + com.google.cloud.certificatemanager.v1.GetCertificateRequest.class, com.google.cloud.certificatemanager.v1.GetCertificateRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. A name of the certificate to describe. Must be in the format
    * `projects/*/locations/*/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 @@ -135,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. A name of the certificate to describe. Must be in the format
    * `projects/*/locations/*/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 { @@ -169,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,11 +108,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_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +125,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -205,16 +133,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.certificatemanager.v1.GetCertificateRequest)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.GetCertificateRequest other = - (com.google.cloud.certificatemanager.v1.GetCertificateRequest) obj; + com.google.cloud.certificatemanager.v1.GetCertificateRequest other = (com.google.cloud.certificatemanager.v1.GetCertificateRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,149 +155,135 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.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.certificatemanager.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.certificatemanager.v1.GetCertificateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.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.certificatemanager.v1.GetCertificateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.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.certificatemanager.v1.GetCertificateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.GetCertificateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.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.certificatemanager.v1.GetCertificateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.GetCertificateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.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.certificatemanager.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.certificatemanager.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.certificatemanager.v1.GetCertificateRequest prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.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 for the `GetCertificate` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.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.certificatemanager.v1.GetCertificateRequest) com.google.cloud.certificatemanager.v1.GetCertificateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_GetCertificateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_GetCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_GetCertificateRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_GetCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.GetCertificateRequest.class, - com.google.cloud.certificatemanager.v1.GetCertificateRequest.Builder.class); + com.google.cloud.certificatemanager.v1.GetCertificateRequest.class, com.google.cloud.certificatemanager.v1.GetCertificateRequest.Builder.class); } // Construct using com.google.cloud.certificatemanager.v1.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,14 +293,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_GetCertificateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_GetCertificateRequest_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.GetCertificateRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.GetCertificateRequest getDefaultInstanceForType() { return com.google.cloud.certificatemanager.v1.GetCertificateRequest.getDefaultInstance(); } @@ -401,8 +314,7 @@ public com.google.cloud.certificatemanager.v1.GetCertificateRequest build() { @java.lang.Override public com.google.cloud.certificatemanager.v1.GetCertificateRequest buildPartial() { - com.google.cloud.certificatemanager.v1.GetCertificateRequest result = - new com.google.cloud.certificatemanager.v1.GetCertificateRequest(this); + com.google.cloud.certificatemanager.v1.GetCertificateRequest result = new com.google.cloud.certificatemanager.v1.GetCertificateRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +324,38 @@ public com.google.cloud.certificatemanager.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.certificatemanager.v1.GetCertificateRequest) { - return mergeFrom((com.google.cloud.certificatemanager.v1.GetCertificateRequest) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.GetCertificateRequest)other); } else { super.mergeFrom(other); return this; @@ -452,14 +363,12 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.certificatemanager.v1.GetCertificateRequest other) { - if (other - == com.google.cloud.certificatemanager.v1.GetCertificateRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.certificatemanager.v1.GetCertificateRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -474,40 +383,53 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.GetCertificateRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.GetCertificateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object name_ = ""; /** - * - * *
      * Required. A name of the certificate to describe. Must be in the format
      * `projects/*/locations/*/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; @@ -516,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. A name of the certificate to describe. Must be in the format
      * `projects/*/locations/*/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 { @@ -541,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. A name of the certificate to describe. Must be in the format
      * `projects/*/locations/*/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. A name of the certificate to describe. Must be in the format
      * `projects/*/locations/*/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. A name of the certificate to describe. Must be in the format
      * `projects/*/locations/*/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; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -621,13 +527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.GetCertificateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.GetCertificateRequest) - private static final com.google.cloud.certificatemanager.v1.GetCertificateRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.GetCertificateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.GetCertificateRequest(); } @@ -636,16 +541,27 @@ public static com.google.cloud.certificatemanager.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,4 +576,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.certificatemanager.v1.GetCertificateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateRequestOrBuilder.java new file mode 100644 index 000000000000..20d2f35c15ee --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetCertificateRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/certificatemanager/v1/certificate_manager.proto + +package com.google.cloud.certificatemanager.v1; + +public interface GetCertificateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.GetCertificateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A name of the certificate to describe. Must be in the format
+   * `projects/*/locations/*/certificates/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. A name of the certificate to describe. Must be in the format
+   * `projects/*/locations/*/certificates/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetDnsAuthorizationRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetDnsAuthorizationRequest.java similarity index 54% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetDnsAuthorizationRequest.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetDnsAuthorizationRequest.java index 248d5a5d988a..fa1a4b90d13d 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetDnsAuthorizationRequest.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetDnsAuthorizationRequest.java @@ -1,132 +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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Request for the `GetDnsAuthorization` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest} */ -public final class GetDnsAuthorizationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetDnsAuthorizationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest) GetDnsAuthorizationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetDnsAuthorizationRequest.newBuilder() to construct. private GetDnsAuthorizationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetDnsAuthorizationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetDnsAuthorizationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private GetDnsAuthorizationRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_GetDnsAuthorizationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_GetDnsAuthorizationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_GetDnsAuthorizationRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_GetDnsAuthorizationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest.class, - com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest.Builder.class); + com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest.class, com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
-   * Required. A name of the dns authorization to describe. Must be in the format
-   * `projects/*/locations/*/dnsAuthorizations/*`.
+   * Required. A name of the dns authorization to describe. Must be in the
+   * format `projects/*/locations/*/dnsAuthorizations/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
-   * Required. A name of the dns authorization to describe. Must be in the format
-   * `projects/*/locations/*/dnsAuthorizations/*`.
+   * Required. A name of the dns authorization to describe. Must be in the
+   * format `projects/*/locations/*/dnsAuthorizations/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,11 +108,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_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +125,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -205,16 +133,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.certificatemanager.v1.GetDnsAuthorizationRequest)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest other = - (com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest) obj; + com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest other = (com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,151 +155,135 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `GetDnsAuthorization` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest) com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_GetDnsAuthorizationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_GetDnsAuthorizationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_GetDnsAuthorizationRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_GetDnsAuthorizationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest.class, - com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest.Builder.class); + com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest.class, com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest.Builder.class); } - // Construct using - // com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest.newBuilder() + // Construct using com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,14 +293,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_GetDnsAuthorizationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_GetDnsAuthorizationRequest_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest getDefaultInstanceForType() { return com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest.getDefaultInstance(); } @@ -403,8 +314,7 @@ public com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest build() @java.lang.Override public com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest buildPartial() { - com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest result = - new com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest(this); + com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest result = new com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest(this); result.name_ = name_; onBuilt(); return result; @@ -414,55 +324,51 @@ public com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest 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.certificatemanager.v1.GetDnsAuthorizationRequest) { - return mergeFrom((com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest other) { - if (other - == com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest other) { + if (other == com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -477,41 +383,53 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object name_ = ""; /** - * - * *
-     * Required. A name of the dns authorization to describe. Must be in the format
-     * `projects/*/locations/*/dnsAuthorizations/*`.
+     * Required. A name of the dns authorization to describe. Must be in the
+     * format `projects/*/locations/*/dnsAuthorizations/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -520,24 +438,21 @@ public java.lang.String getName() { } } /** - * - * *
-     * Required. A name of the dns authorization to describe. Must be in the format
-     * `projects/*/locations/*/dnsAuthorizations/*`.
+     * Required. A name of the dns authorization to describe. Must be in the
+     * format `projects/*/locations/*/dnsAuthorizations/*`.
      * 
* - * - * string name = 1 [(.google.api.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,77 +460,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
-     * Required. A name of the dns authorization to describe. Must be in the format
-     * `projects/*/locations/*/dnsAuthorizations/*`.
+     * Required. A name of the dns authorization to describe. Must be in the
+     * format `projects/*/locations/*/dnsAuthorizations/*`.
      * 
* - * - * 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. A name of the dns authorization to describe. Must be in the format
-     * `projects/*/locations/*/dnsAuthorizations/*`.
+     * Required. A name of the dns authorization to describe. Must be in the
+     * format `projects/*/locations/*/dnsAuthorizations/*`.
      * 
* - * - * string 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. A name of the dns authorization to describe. Must be in the format
-     * `projects/*/locations/*/dnsAuthorizations/*`.
+     * Required. A name of the dns authorization to describe. Must be in the
+     * format `projects/*/locations/*/dnsAuthorizations/*`.
      * 
* - * - * 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); } @@ -625,32 +527,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest) - private static final com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest(); } - public static com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDnsAuthorizationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDnsAuthorizationRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDnsAuthorizationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -662,8 +573,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetDnsAuthorizationRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetDnsAuthorizationRequestOrBuilder.java new file mode 100644 index 000000000000..32151a9c0d76 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/GetDnsAuthorizationRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/certificatemanager/v1/certificate_manager.proto + +package com.google.cloud.certificatemanager.v1; + +public interface GetDnsAuthorizationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A name of the dns authorization to describe. Must be in the
+   * format `projects/*/locations/*/dnsAuthorizations/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. A name of the dns authorization to describe. Must be in the
+   * format `projects/*/locations/*/dnsAuthorizations/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsRequest.java new file mode 100644 index 000000000000..8a65d6a203e3 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsRequest.java @@ -0,0 +1,1191 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +/** + *
+ * Request for the `ListCertificateIssuanceConfigs` method.
+ * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest} + */ +public final class ListCertificateIssuanceConfigsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest) + ListCertificateIssuanceConfigsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListCertificateIssuanceConfigsRequest.newBuilder() to construct. + private ListCertificateIssuanceConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListCertificateIssuanceConfigsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListCertificateIssuanceConfigsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest.class, com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+   * Required. The project and location from which the certificate should be
+   * listed, specified in the format `projects/*/locations/*`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + *
+   * Required. The project and location from which the certificate should be
+   * listed, specified in the format `projects/*/locations/*`.
+   * 
+ * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + *
+   * Maximum number of certificate configs to return per call.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + *
+   * The value returned by the last `ListCertificateIssuanceConfigsResponse`.
+   * Indicates that this is a continuation of a prior
+   * `ListCertificateIssuanceConfigs` call, and that the system should return
+   * the next page of data.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + *
+   * The value returned by the last `ListCertificateIssuanceConfigsResponse`.
+   * Indicates that this is a continuation of a prior
+   * `ListCertificateIssuanceConfigs` call, and that the system should return
+   * the next page of data.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + @java.lang.Override + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + private volatile java.lang.Object filter_; + /** + *
+   * Filter expression to restrict the Certificates Configs returned.
+   * 
+ * + * string filter = 4; + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + *
+   * Filter expression to restrict the Certificates Configs returned.
+   * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + @java.lang.Override + 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); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + private volatile java.lang.Object orderBy_; + /** + *
+   * A list of Certificate Config field names used to specify the order of the
+   * returned results. The default sorting order is ascending. To specify
+   * descending order for a field, add a suffix " desc".
+   * 
+ * + * string order_by = 5; + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + *
+   * A list of Certificate Config field names used to specify the order of the
+   * returned results. The default sorting order is ascending. To specify
+   * descending order for a field, add a suffix " desc".
+   * 
+ * + * string order_by = 5; + * @return The bytes for orderBy. + */ + @java.lang.Override + 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); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest)) { + return super.equals(obj); + } + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest other = (com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest 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.certificatemanager.v1.ListCertificateIssuanceConfigsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest 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.certificatemanager.v1.ListCertificateIssuanceConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the `ListCertificateIssuanceConfigs` method.
+   * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest) + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest.class, com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest.Builder.class); + } + + // Construct using com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + filter_ = ""; + + orderBy_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest build() { + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest buildPartial() { + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest result = new com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.filter_ = filter_; + result.orderBy_ = orderBy_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest) { + return mergeFrom((com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest other) { + if (other == com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object parent_ = ""; + /** + *
+     * Required. The project and location from which the certificate should be
+     * listed, specified in the format `projects/*/locations/*`.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The project and location from which the certificate should be
+     * listed, specified in the format `projects/*/locations/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The project and location from which the certificate should be
+     * listed, specified in the format `projects/*/locations/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The project and location from which the certificate should be
+     * listed, specified in the format `projects/*/locations/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + *
+     * Required. The project and location from which the certificate should be
+     * listed, specified in the format `projects/*/locations/*`.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * Maximum number of certificate configs to return per call.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Maximum number of certificate configs to return per call.
+     * 
+ * + * int32 page_size = 2; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * Maximum number of certificate configs to return per call.
+     * 
+ * + * int32 page_size = 2; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * The value returned by the last `ListCertificateIssuanceConfigsResponse`.
+     * Indicates that this is a continuation of a prior
+     * `ListCertificateIssuanceConfigs` call, and that the system should return
+     * the next page of data.
+     * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The value returned by the last `ListCertificateIssuanceConfigsResponse`.
+     * Indicates that this is a continuation of a prior
+     * `ListCertificateIssuanceConfigs` call, and that the system should return
+     * the next page of data.
+     * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The value returned by the last `ListCertificateIssuanceConfigsResponse`.
+     * Indicates that this is a continuation of a prior
+     * `ListCertificateIssuanceConfigs` call, and that the system should return
+     * the next page of data.
+     * 
+ * + * string page_token = 3; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * The value returned by the last `ListCertificateIssuanceConfigsResponse`.
+     * Indicates that this is a continuation of a prior
+     * `ListCertificateIssuanceConfigs` call, and that the system should return
+     * the next page of data.
+     * 
+ * + * string page_token = 3; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * The value returned by the last `ListCertificateIssuanceConfigsResponse`.
+     * Indicates that this is a continuation of a prior
+     * `ListCertificateIssuanceConfigs` call, and that the system should return
+     * the next page of data.
+     * 
+ * + * string page_token = 3; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + *
+     * Filter expression to restrict the Certificates Configs returned.
+     * 
+ * + * string filter = 4; + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Filter expression to restrict the Certificates Configs returned.
+     * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + 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); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Filter expression to restrict the Certificates Configs returned.
+     * 
+ * + * string filter = 4; + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + *
+     * Filter expression to restrict the Certificates Configs returned.
+     * 
+ * + * string filter = 4; + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + *
+     * Filter expression to restrict the Certificates Configs returned.
+     * 
+ * + * string filter = 4; + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + *
+     * A list of Certificate Config field names used to specify the order of the
+     * returned results. The default sorting order is ascending. To specify
+     * descending order for a field, add a suffix " desc".
+     * 
+ * + * string order_by = 5; + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A list of Certificate Config field names used to specify the order of the
+     * returned results. The default sorting order is ascending. To specify
+     * descending order for a field, add a suffix " desc".
+     * 
+ * + * string order_by = 5; + * @return The bytes for orderBy. + */ + 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); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A list of Certificate Config field names used to specify the order of the
+     * returned results. The default sorting order is ascending. To specify
+     * descending order for a field, add a suffix " desc".
+     * 
+ * + * string order_by = 5; + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderBy_ = value; + onChanged(); + return this; + } + /** + *
+     * A list of Certificate Config field names used to specify the order of the
+     * returned results. The default sorting order is ascending. To specify
+     * descending order for a field, add a suffix " desc".
+     * 
+ * + * string order_by = 5; + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + + orderBy_ = getDefaultInstance().getOrderBy(); + onChanged(); + return this; + } + /** + *
+     * A list of Certificate Config field names used to specify the order of the
+     * returned results. The default sorting order is ascending. To specify
+     * descending order for a field, add a suffix " desc".
+     * 
+ * + * string order_by = 5; + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest) + private static final com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest(); + } + + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateIssuanceConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsRequestOrBuilder.java new file mode 100644 index 000000000000..6a0b28d47daa --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsRequestOrBuilder.java @@ -0,0 +1,111 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +public interface ListCertificateIssuanceConfigsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The project and location from which the certificate should be
+   * listed, specified in the format `projects/*/locations/*`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The project and location from which the certificate should be
+   * listed, specified in the format `projects/*/locations/*`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Maximum number of certificate configs to return per call.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * The value returned by the last `ListCertificateIssuanceConfigsResponse`.
+   * Indicates that this is a continuation of a prior
+   * `ListCertificateIssuanceConfigs` call, and that the system should return
+   * the next page of data.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * The value returned by the last `ListCertificateIssuanceConfigsResponse`.
+   * Indicates that this is a continuation of a prior
+   * `ListCertificateIssuanceConfigs` call, and that the system should return
+   * the next page of data.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); + + /** + *
+   * Filter expression to restrict the Certificates Configs returned.
+   * 
+ * + * string filter = 4; + * @return The filter. + */ + java.lang.String getFilter(); + /** + *
+   * Filter expression to restrict the Certificates Configs returned.
+   * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + com.google.protobuf.ByteString + getFilterBytes(); + + /** + *
+   * A list of Certificate Config field names used to specify the order of the
+   * returned results. The default sorting order is ascending. To specify
+   * descending order for a field, add a suffix " desc".
+   * 
+ * + * string order_by = 5; + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + *
+   * A list of Certificate Config field names used to specify the order of the
+   * returned results. The default sorting order is ascending. To specify
+   * descending order for a field, add a suffix " desc".
+   * 
+ * + * string order_by = 5; + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString + getOrderByBytes(); +} diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsResponse.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsResponse.java new file mode 100644 index 000000000000..5d2a31fc4e4b --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsResponse.java @@ -0,0 +1,1269 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +/** + *
+ * Response for the `ListCertificateIssuanceConfigs` method.
+ * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse} + */ +public final class ListCertificateIssuanceConfigsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse) + ListCertificateIssuanceConfigsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListCertificateIssuanceConfigsResponse.newBuilder() to construct. + private ListCertificateIssuanceConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListCertificateIssuanceConfigsResponse() { + certificateIssuanceConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListCertificateIssuanceConfigsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse.class, com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse.Builder.class); + } + + public static final int CERTIFICATE_ISSUANCE_CONFIGS_FIELD_NUMBER = 1; + private java.util.List certificateIssuanceConfigs_; + /** + *
+   * A list of certificate configs for the parent resource.
+   * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + @java.lang.Override + public java.util.List getCertificateIssuanceConfigsList() { + return certificateIssuanceConfigs_; + } + /** + *
+   * A list of certificate configs for the parent resource.
+   * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + @java.lang.Override + public java.util.List + getCertificateIssuanceConfigsOrBuilderList() { + return certificateIssuanceConfigs_; + } + /** + *
+   * A list of certificate configs for the parent resource.
+   * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + @java.lang.Override + public int getCertificateIssuanceConfigsCount() { + return certificateIssuanceConfigs_.size(); + } + /** + *
+   * A list of certificate configs for the parent resource.
+   * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig getCertificateIssuanceConfigs(int index) { + return certificateIssuanceConfigs_.get(index); + } + /** + *
+   * A list of certificate configs for the parent resource.
+   * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + @java.lang.Override + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder getCertificateIssuanceConfigsOrBuilder( + int index) { + return certificateIssuanceConfigs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * If there might be more results than those appearing in this response, then
+   * `next_page_token` is included. To get the next set of results, call this
+   * method again using the value of `next_page_token` as `page_token`.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * If there might be more results than those appearing in this response, then
+   * `next_page_token` is included. To get the next set of results, call this
+   * method again using the value of `next_page_token` as `page_token`.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList unreachable_; + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList + getUnreachableList() { + return unreachable_; + } + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < certificateIssuanceConfigs_.size(); i++) { + output.writeMessage(1, certificateIssuanceConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < certificateIssuanceConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, certificateIssuanceConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse)) { + return super.equals(obj); + } + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse other = (com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse) obj; + + if (!getCertificateIssuanceConfigsList() + .equals(other.getCertificateIssuanceConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCertificateIssuanceConfigsCount() > 0) { + hash = (37 * hash) + CERTIFICATE_ISSUANCE_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getCertificateIssuanceConfigsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse 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.certificatemanager.v1.ListCertificateIssuanceConfigsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse 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.certificatemanager.v1.ListCertificateIssuanceConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response for the `ListCertificateIssuanceConfigs` method.
+   * 
+ * + * Protobuf type {@code google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse) + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse.class, com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse.Builder.class); + } + + // Construct using com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (certificateIssuanceConfigsBuilder_ == null) { + certificateIssuanceConfigs_ = java.util.Collections.emptyList(); + } else { + certificateIssuanceConfigs_ = null; + certificateIssuanceConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateIssuanceConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse build() { + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse buildPartial() { + com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse result = new com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse(this); + int from_bitField0_ = bitField0_; + if (certificateIssuanceConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + certificateIssuanceConfigs_ = java.util.Collections.unmodifiableList(certificateIssuanceConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.certificateIssuanceConfigs_ = certificateIssuanceConfigs_; + } else { + result.certificateIssuanceConfigs_ = certificateIssuanceConfigsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse) { + return mergeFrom((com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse other) { + if (other == com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse.getDefaultInstance()) return this; + if (certificateIssuanceConfigsBuilder_ == null) { + if (!other.certificateIssuanceConfigs_.isEmpty()) { + if (certificateIssuanceConfigs_.isEmpty()) { + certificateIssuanceConfigs_ = other.certificateIssuanceConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCertificateIssuanceConfigsIsMutable(); + certificateIssuanceConfigs_.addAll(other.certificateIssuanceConfigs_); + } + onChanged(); + } + } else { + if (!other.certificateIssuanceConfigs_.isEmpty()) { + if (certificateIssuanceConfigsBuilder_.isEmpty()) { + certificateIssuanceConfigsBuilder_.dispose(); + certificateIssuanceConfigsBuilder_ = null; + certificateIssuanceConfigs_ = other.certificateIssuanceConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + certificateIssuanceConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCertificateIssuanceConfigsFieldBuilder() : null; + } else { + certificateIssuanceConfigsBuilder_.addAllMessages(other.certificateIssuanceConfigs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig m = + input.readMessage( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.parser(), + extensionRegistry); + if (certificateIssuanceConfigsBuilder_ == null) { + ensureCertificateIssuanceConfigsIsMutable(); + certificateIssuanceConfigs_.add(m); + } else { + certificateIssuanceConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List certificateIssuanceConfigs_ = + java.util.Collections.emptyList(); + private void ensureCertificateIssuanceConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + certificateIssuanceConfigs_ = new java.util.ArrayList(certificateIssuanceConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder> certificateIssuanceConfigsBuilder_; + + /** + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + public java.util.List getCertificateIssuanceConfigsList() { + if (certificateIssuanceConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(certificateIssuanceConfigs_); + } else { + return certificateIssuanceConfigsBuilder_.getMessageList(); + } + } + /** + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + public int getCertificateIssuanceConfigsCount() { + if (certificateIssuanceConfigsBuilder_ == null) { + return certificateIssuanceConfigs_.size(); + } else { + return certificateIssuanceConfigsBuilder_.getCount(); + } + } + /** + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig getCertificateIssuanceConfigs(int index) { + if (certificateIssuanceConfigsBuilder_ == null) { + return certificateIssuanceConfigs_.get(index); + } else { + return certificateIssuanceConfigsBuilder_.getMessage(index); + } + } + /** + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + public Builder setCertificateIssuanceConfigs( + int index, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig value) { + if (certificateIssuanceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCertificateIssuanceConfigsIsMutable(); + certificateIssuanceConfigs_.set(index, value); + onChanged(); + } else { + certificateIssuanceConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + public Builder setCertificateIssuanceConfigs( + int index, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder builderForValue) { + if (certificateIssuanceConfigsBuilder_ == null) { + ensureCertificateIssuanceConfigsIsMutable(); + certificateIssuanceConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + certificateIssuanceConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + public Builder addCertificateIssuanceConfigs(com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig value) { + if (certificateIssuanceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCertificateIssuanceConfigsIsMutable(); + certificateIssuanceConfigs_.add(value); + onChanged(); + } else { + certificateIssuanceConfigsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + public Builder addCertificateIssuanceConfigs( + int index, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig value) { + if (certificateIssuanceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCertificateIssuanceConfigsIsMutable(); + certificateIssuanceConfigs_.add(index, value); + onChanged(); + } else { + certificateIssuanceConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + public Builder addCertificateIssuanceConfigs( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder builderForValue) { + if (certificateIssuanceConfigsBuilder_ == null) { + ensureCertificateIssuanceConfigsIsMutable(); + certificateIssuanceConfigs_.add(builderForValue.build()); + onChanged(); + } else { + certificateIssuanceConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + public Builder addCertificateIssuanceConfigs( + int index, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder builderForValue) { + if (certificateIssuanceConfigsBuilder_ == null) { + ensureCertificateIssuanceConfigsIsMutable(); + certificateIssuanceConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + certificateIssuanceConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + public Builder addAllCertificateIssuanceConfigs( + java.lang.Iterable values) { + if (certificateIssuanceConfigsBuilder_ == null) { + ensureCertificateIssuanceConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, certificateIssuanceConfigs_); + onChanged(); + } else { + certificateIssuanceConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + public Builder clearCertificateIssuanceConfigs() { + if (certificateIssuanceConfigsBuilder_ == null) { + certificateIssuanceConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + certificateIssuanceConfigsBuilder_.clear(); + } + return this; + } + /** + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + public Builder removeCertificateIssuanceConfigs(int index) { + if (certificateIssuanceConfigsBuilder_ == null) { + ensureCertificateIssuanceConfigsIsMutable(); + certificateIssuanceConfigs_.remove(index); + onChanged(); + } else { + certificateIssuanceConfigsBuilder_.remove(index); + } + return this; + } + /** + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder getCertificateIssuanceConfigsBuilder( + int index) { + return getCertificateIssuanceConfigsFieldBuilder().getBuilder(index); + } + /** + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder getCertificateIssuanceConfigsOrBuilder( + int index) { + if (certificateIssuanceConfigsBuilder_ == null) { + return certificateIssuanceConfigs_.get(index); } else { + return certificateIssuanceConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + public java.util.List + getCertificateIssuanceConfigsOrBuilderList() { + if (certificateIssuanceConfigsBuilder_ != null) { + return certificateIssuanceConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(certificateIssuanceConfigs_); + } + } + /** + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder addCertificateIssuanceConfigsBuilder() { + return getCertificateIssuanceConfigsFieldBuilder().addBuilder( + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.getDefaultInstance()); + } + /** + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + public com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder addCertificateIssuanceConfigsBuilder( + int index) { + return getCertificateIssuanceConfigsFieldBuilder().addBuilder( + index, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.getDefaultInstance()); + } + /** + *
+     * A list of certificate configs for the parent resource.
+     * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + public java.util.List + getCertificateIssuanceConfigsBuilderList() { + return getCertificateIssuanceConfigsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder> + getCertificateIssuanceConfigsFieldBuilder() { + if (certificateIssuanceConfigsBuilder_ == null) { + certificateIssuanceConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig.Builder, com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder>( + certificateIssuanceConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + certificateIssuanceConfigs_ = null; + } + return certificateIssuanceConfigsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * If there might be more results than those appearing in this response, then
+     * `next_page_token` is included. To get the next set of results, call this
+     * method again using the value of `next_page_token` as `page_token`.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * If there might be more results than those appearing in this response, then
+     * `next_page_token` is included. To get the next set of results, call this
+     * method again using the value of `next_page_token` as `page_token`.
+     * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * If there might be more results than those appearing in this response, then
+     * `next_page_token` is included. To get the next set of results, call this
+     * method again using the value of `next_page_token` as `page_token`.
+     * 
+ * + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * If there might be more results than those appearing in this response, then
+     * `next_page_token` is included. To get the next set of results, call this
+     * method again using the value of `next_page_token` as `page_token`.
+     * 
+ * + * string next_page_token = 2; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * If there might be more results than those appearing in this response, then
+     * `next_page_token` is included. To get the next set of results, call this
+     * method again using the value of `next_page_token` as `page_token`.
+     * 
+ * + * string next_page_token = 2; + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + bitField0_ |= 0x00000002; + } + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList + getUnreachableList() { + return unreachable_.getUnmodifiableView(); + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable( + java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); + onChanged(); + return this; + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + 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) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse) + private static final com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse(); + } + + public static com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateIssuanceConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsResponseOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsResponseOrBuilder.java new file mode 100644 index 000000000000..a35aadbf87c1 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateIssuanceConfigsResponseOrBuilder.java @@ -0,0 +1,118 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/certificatemanager/v1/certificate_issuance_config.proto + +package com.google.cloud.certificatemanager.v1; + +public interface ListCertificateIssuanceConfigsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A list of certificate configs for the parent resource.
+   * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + java.util.List + getCertificateIssuanceConfigsList(); + /** + *
+   * A list of certificate configs for the parent resource.
+   * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig getCertificateIssuanceConfigs(int index); + /** + *
+   * A list of certificate configs for the parent resource.
+   * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + int getCertificateIssuanceConfigsCount(); + /** + *
+   * A list of certificate configs for the parent resource.
+   * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + java.util.List + getCertificateIssuanceConfigsOrBuilderList(); + /** + *
+   * A list of certificate configs for the parent resource.
+   * 
+ * + * repeated .google.cloud.certificatemanager.v1.CertificateIssuanceConfig certificate_issuance_configs = 1; + */ + com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigOrBuilder getCertificateIssuanceConfigsOrBuilder( + int index); + + /** + *
+   * If there might be more results than those appearing in this response, then
+   * `next_page_token` is included. To get the next set of results, call this
+   * method again using the value of `next_page_token` as `page_token`.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * If there might be more results than those appearing in this response, then
+   * `next_page_token` is included. To get the next set of results, call this
+   * method again using the value of `next_page_token` as `page_token`.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); + + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + java.util.List + getUnreachableList(); + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString + getUnreachableBytes(int index); +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesRequest.java similarity index 65% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesRequest.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesRequest.java index e0623b7d96c6..45a3951ff096 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesRequest.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesRequest.java @@ -1,43 +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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Request for the `ListCertificateMapEntries` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest} */ -public final class ListCertificateMapEntriesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCertificateMapEntriesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest) ListCertificateMapEntriesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCertificateMapEntriesRequest.newBuilder() to construct. - private ListCertificateMapEntriesRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListCertificateMapEntriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCertificateMapEntriesRequest() { parent_ = ""; pageToken_ = ""; @@ -47,117 +28,39 @@ private ListCertificateMapEntriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCertificateMapEntriesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private ListCertificateMapEntriesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - 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(); - - pageToken_ = s; - break; - } - case 34: - { - 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; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest.class, - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest.Builder.class); + com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest.class, com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
-   * Required. The project, location and certificate map from which the certificate map
-   * entries should be listed, specified in the format
+   * Required. The project, location and certificate map from which the
+   * certificate map entries should be listed, specified in the format
    * `projects/*/locations/*/certificateMaps/*`.
    * 
* - * - * string parent = 1 [(.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 +69,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
-   * Required. The project, location and certificate map from which the certificate map
-   * entries should be listed, specified in the format
+   * Required. The project, location and certificate map from which the
+   * certificate map entries should be listed, specified in the format
    * `projects/*/locations/*/certificateMaps/*`.
    * 
* - * - * string parent = 1 [(.google.api.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 +104,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Maximum number of certificate map entries to return. The service may return
    * fewer than this value.
@@ -213,7 +112,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -224,8 +122,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListCertificateMapEntriesResponse`.
    * Indicates that this is a continuation of a prior
@@ -234,7 +130,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -243,15 +138,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `ListCertificateMapEntriesResponse`.
    * Indicates that this is a continuation of a prior
@@ -260,15 +154,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -279,14 +174,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Filter expression to restrict the returned Certificate Map Entries.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -295,29 +187,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; } } /** - * - * *
    * Filter expression to restrict the returned Certificate Map Entries.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -328,8 +220,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * A list of Certificate Map Entry field names used to specify
    * the order of the returned results. The default sorting order is ascending.
@@ -337,7 +227,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -346,15 +235,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; } } /** - * - * *
    * A list of Certificate Map Entry field names used to specify
    * the order of the returned results. The default sorting order is ascending.
@@ -362,15 +250,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -379,7 +268,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -391,7 +279,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -407,7 +296,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -420,7 +309,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_); @@ -431,7 +321,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -439,20 +329,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.certificatemanager.v1.ListCertificateMapEntriesRequest)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest other = - (com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest) 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; + com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest other = (com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -473,152 +367,135 @@ public int hashCode() { hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; hash = (53 * hash) + getOrderBy().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListCertificateMapEntries` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest) com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest.class, - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest.Builder - .class); + com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest.class, com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest.Builder.class); } - // Construct using - // com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest.newBuilder() + // Construct using com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -636,22 +513,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesRequest_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest - getDefaultInstanceForType() { - return com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest - .getDefaultInstance(); + public com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest build() { - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest result = - buildPartial(); + com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -660,8 +534,7 @@ public com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest b @java.lang.Override public com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest buildPartial() { - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest result = - new com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest(this); + com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest result = new com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -675,52 +548,46 @@ public com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest 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.certificatemanager.v1.ListCertificateMapEntriesRequest) { - return mergeFrom( - (com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest) other); + if (other instanceof com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest) { + return mergeFrom((com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest other) { - if (other - == com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest other) { + if (other == com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -740,7 +607,7 @@ public Builder mergeFrom( orderBy_ = other.orderBy_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -755,42 +622,74 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object parent_ = ""; /** - * - * *
-     * Required. The project, location and certificate map from which the certificate map
-     * entries should be listed, specified in the format
+     * Required. The project, location and certificate map from which the
+     * certificate map entries should be listed, specified in the format
      * `projects/*/locations/*/certificateMaps/*`.
      * 
* - * - * string parent = 1 [(.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 +698,22 @@ public java.lang.String getParent() { } } /** - * - * *
-     * Required. The project, location and certificate map from which the certificate map
-     * entries should be listed, specified in the format
+     * Required. The project, location and certificate map from which the
+     * certificate map entries should be listed, specified in the format
      * `projects/*/locations/*/certificateMaps/*`.
      * 
* - * - * string parent = 1 [(.google.api.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,82 +721,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
-     * Required. The project, location and certificate map from which the certificate map
-     * entries should be listed, specified in the format
+     * Required. The project, location and certificate map from which the
+     * certificate map entries should be listed, specified in the format
      * `projects/*/locations/*/certificateMaps/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
-     * Required. The project, location and certificate map from which the certificate map
-     * entries should be listed, specified in the format
+     * Required. The project, location and certificate map from which the
+     * certificate map entries should be listed, specified in the format
      * `projects/*/locations/*/certificateMaps/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
-     * Required. The project, location and certificate map from which the certificate map
-     * entries should be listed, specified in the format
+     * Required. The project, location and certificate map from which the
+     * certificate map entries should be listed, specified in the format
      * `projects/*/locations/*/certificateMaps/*`.
      * 
* - * - * 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_ ; /** - * - * *
      * Maximum number of certificate map entries to return. The service may return
      * fewer than this value.
@@ -909,7 +790,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -917,8 +797,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of certificate map entries to return. The service may return
      * fewer than this value.
@@ -927,19 +805,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of certificate map entries to return. The service may return
      * fewer than this value.
@@ -948,11 +823,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -960,8 +834,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListCertificateMapEntriesResponse`.
      * Indicates that this is a continuation of a prior
@@ -970,13 +842,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -985,8 +857,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListCertificateMapEntriesResponse`.
      * Indicates that this is a continuation of a prior
@@ -995,14 +865,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1010,8 +881,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListCertificateMapEntriesResponse`.
      * Indicates that this is a continuation of a prior
@@ -1020,22 +889,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListCertificateMapEntriesResponse`.
      * Indicates that this is a continuation of a prior
@@ -1044,18 +911,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListCertificateMapEntriesResponse`.
      * Indicates that this is a continuation of a prior
@@ -1064,16 +928,16 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1081,20 +945,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter expression to restrict the returned Certificate Map Entries.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1103,21 +965,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter expression to restrict the returned Certificate Map Entries.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1125,61 +986,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter expression to restrict the returned Certificate Map Entries.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Filter expression to restrict the returned Certificate Map Entries.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Filter expression to restrict the returned Certificate Map Entries.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1187,8 +1041,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * A list of Certificate Map Entry field names used to specify
      * the order of the returned results. The default sorting order is ascending.
@@ -1196,13 +1048,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1211,8 +1063,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * A list of Certificate Map Entry field names used to specify
      * the order of the returned results. The default sorting order is ascending.
@@ -1220,14 +1070,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1235,8 +1086,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * A list of Certificate Map Entry field names used to specify
      * the order of the returned results. The default sorting order is ascending.
@@ -1244,22 +1093,20 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * A list of Certificate Map Entry field names used to specify
      * the order of the returned results. The default sorting order is ascending.
@@ -1267,18 +1114,15 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * A list of Certificate Map Entry field names used to specify
      * the order of the returned results. The default sorting order is ascending.
@@ -1286,23 +1130,23 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1312,33 +1156,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest) - private static final com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest(); + DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest(); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateMapEntriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateMapEntriesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateMapEntriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1350,8 +1202,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesRequestOrBuilder.java similarity index 67% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesRequestOrBuilder.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesRequestOrBuilder.java index 78933c786e87..21e9dfe2175e 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesRequestOrBuilder.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesRequestOrBuilder.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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; -public interface ListCertificateMapEntriesRequestOrBuilder - extends +public interface ListCertificateMapEntriesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Required. The project, location and certificate map from which the certificate map
-   * entries should be listed, specified in the format
+   * Required. The project, location and certificate map from which the
+   * certificate map entries should be listed, specified in the format
    * `projects/*/locations/*/certificateMaps/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
-   * Required. The project, location and certificate map from which the certificate map
-   * entries should be listed, specified in the format
+   * Required. The project, location and certificate map from which the
+   * certificate map entries should be listed, specified in the format
    * `projects/*/locations/*/certificateMaps/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of certificate map entries to return. The service may return
    * fewer than this value.
@@ -67,14 +40,11 @@ public interface ListCertificateMapEntriesRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value returned by the last `ListCertificateMapEntriesResponse`.
    * Indicates that this is a continuation of a prior
@@ -83,13 +53,10 @@ public interface ListCertificateMapEntriesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListCertificateMapEntriesResponse`.
    * Indicates that this is a continuation of a prior
@@ -98,39 +65,32 @@ public interface ListCertificateMapEntriesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Filter expression to restrict the returned Certificate Map Entries.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter expression to restrict the returned Certificate Map Entries.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * A list of Certificate Map Entry field names used to specify
    * the order of the returned results. The default sorting order is ascending.
@@ -138,13 +98,10 @@ public interface ListCertificateMapEntriesRequestOrBuilder
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * A list of Certificate Map Entry field names used to specify
    * the order of the returned results. The default sorting order is ascending.
@@ -152,8 +109,8 @@ public interface ListCertificateMapEntriesRequestOrBuilder
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesResponse.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesResponse.java similarity index 62% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesResponse.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesResponse.java index c054772df8ed..96fcdb1a6771 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesResponse.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesResponse.java @@ -1,43 +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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Response for the `ListCertificateMapEntries` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse} */ -public final class ListCertificateMapEntriesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCertificateMapEntriesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse) ListCertificateMapEntriesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCertificateMapEntriesResponse.newBuilder() to construct. - private ListCertificateMapEntriesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListCertificateMapEntriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCertificateMapEntriesResponse() { certificateMapEntries_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -46,196 +27,92 @@ private ListCertificateMapEntriesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCertificateMapEntriesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private ListCertificateMapEntriesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - certificateMapEntries_ = - new java.util.ArrayList< - com.google.cloud.certificatemanager.v1.CertificateMapEntry>(); - mutable_bitField0_ |= 0x00000001; - } - certificateMapEntries_.add( - input.readMessage( - com.google.cloud.certificatemanager.v1.CertificateMapEntry.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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - certificateMapEntries_ = java.util.Collections.unmodifiableList(certificateMapEntries_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesResponse_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse.class, - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse.Builder.class); + com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse.class, com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse.Builder.class); } public static final int CERTIFICATE_MAP_ENTRIES_FIELD_NUMBER = 1; - private java.util.List - certificateMapEntries_; + private java.util.List certificateMapEntries_; /** - * - * *
    * A list of certificate map entries for the parent resource.
    * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ @java.lang.Override - public java.util.List - getCertificateMapEntriesList() { + public java.util.List getCertificateMapEntriesList() { return certificateMapEntries_; } /** - * - * *
    * A list of certificate map entries for the parent resource.
    * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder> + public java.util.List getCertificateMapEntriesOrBuilderList() { return certificateMapEntries_; } /** - * - * *
    * A list of certificate map entries for the parent resource.
    * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ @java.lang.Override public int getCertificateMapEntriesCount() { return certificateMapEntries_.size(); } /** - * - * *
    * A list of certificate map entries for the parent resource.
    * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.CertificateMapEntry getCertificateMapEntries( - int index) { + public com.google.cloud.certificatemanager.v1.CertificateMapEntry getCertificateMapEntries(int index) { return certificateMapEntries_.get(index); } /** - * - * *
    * A list of certificate map entries for the parent resource.
    * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder - getCertificateMapEntriesOrBuilder(int index) { + public com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder getCertificateMapEntriesOrBuilder( + int index) { return certificateMapEntries_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -243,7 +120,6 @@ public com.google.cloud.certificatemanager.v1.CertificateMapEntry getCertificate
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -252,15 +128,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -268,15 +143,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -287,42 +163,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -330,23 +198,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -358,7 +223,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < certificateMapEntries_.size(); i++) { output.writeMessage(1, certificateMapEntries_.get(i)); } @@ -368,7 +234,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < unreachable_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -378,9 +244,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < certificateMapEntries_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, certificateMapEntries_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, certificateMapEntries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -393,7 +258,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getUnreachableList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -401,19 +266,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.certificatemanager.v1.ListCertificateMapEntriesResponse)) { + if (!(obj instanceof com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse other = - (com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse) obj; + com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse other = (com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse) obj; - if (!getCertificateMapEntriesList().equals(other.getCertificateMapEntriesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getCertificateMapEntriesList() + .equals(other.getCertificateMapEntriesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -434,163 +300,145 @@ public int hashCode() { hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; hash = (53 * hash) + getUnreachableList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 for the `ListCertificateMapEntries` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse) com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesResponse_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse.class, - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse.Builder - .class); + com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse.class, com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse.Builder.class); } - // Construct using - // com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse.newBuilder() + // Construct using com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse.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) { - getCertificateMapEntriesFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); if (certificateMapEntriesBuilder_ == null) { certificateMapEntries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + certificateMapEntries_ = null; certificateMapEntriesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -599,22 +447,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateMapEntriesResponse_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse - getDefaultInstanceForType() { - return com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse - .getDefaultInstance(); + public com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse build() { - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse result = - buildPartial(); + com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -623,8 +468,7 @@ public com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse @java.lang.Override public com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse buildPartial() { - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse result = - new com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse(this); + com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse result = new com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse(this); int from_bitField0_ = bitField0_; if (certificateMapEntriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -649,52 +493,46 @@ public com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse) { - return mergeFrom( - (com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse) other); + if (other instanceof com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse) { + return mergeFrom((com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse other) { - if (other - == com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse other) { + if (other == com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse.getDefaultInstance()) return this; if (certificateMapEntriesBuilder_ == null) { if (!other.certificateMapEntries_.isEmpty()) { if (certificateMapEntries_.isEmpty()) { @@ -713,10 +551,9 @@ public Builder mergeFrom( certificateMapEntriesBuilder_ = null; certificateMapEntries_ = other.certificateMapEntries_; bitField0_ = (bitField0_ & ~0x00000001); - certificateMapEntriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCertificateMapEntriesFieldBuilder() - : null; + certificateMapEntriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCertificateMapEntriesFieldBuilder() : null; } else { certificateMapEntriesBuilder_.addAllMessages(other.certificateMapEntries_); } @@ -736,7 +573,7 @@ public Builder mergeFrom( } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -751,55 +588,78 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.certificatemanager.v1.CertificateMapEntry m = + input.readMessage( + com.google.cloud.certificatemanager.v1.CertificateMapEntry.parser(), + extensionRegistry); + if (certificateMapEntriesBuilder_ == null) { + ensureCertificateMapEntriesIsMutable(); + certificateMapEntries_.add(m); + } else { + certificateMapEntriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; - private java.util.List - certificateMapEntries_ = java.util.Collections.emptyList(); - + private java.util.List certificateMapEntries_ = + java.util.Collections.emptyList(); private void ensureCertificateMapEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - certificateMapEntries_ = - new java.util.ArrayList( - certificateMapEntries_); + certificateMapEntries_ = new java.util.ArrayList(certificateMapEntries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMapEntry, - com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder, - com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder> - certificateMapEntriesBuilder_; + com.google.cloud.certificatemanager.v1.CertificateMapEntry, com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder, com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder> certificateMapEntriesBuilder_; /** - * - * *
      * A list of certificate map entries for the parent resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ - public java.util.List - getCertificateMapEntriesList() { + public java.util.List getCertificateMapEntriesList() { if (certificateMapEntriesBuilder_ == null) { return java.util.Collections.unmodifiableList(certificateMapEntries_); } else { @@ -807,15 +667,11 @@ private void ensureCertificateMapEntriesIsMutable() { } } /** - * - * *
      * A list of certificate map entries for the parent resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ public int getCertificateMapEntriesCount() { if (certificateMapEntriesBuilder_ == null) { @@ -825,18 +681,13 @@ public int getCertificateMapEntriesCount() { } } /** - * - * *
      * A list of certificate map entries for the parent resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ - public com.google.cloud.certificatemanager.v1.CertificateMapEntry getCertificateMapEntries( - int index) { + public com.google.cloud.certificatemanager.v1.CertificateMapEntry getCertificateMapEntries(int index) { if (certificateMapEntriesBuilder_ == null) { return certificateMapEntries_.get(index); } else { @@ -844,15 +695,11 @@ public com.google.cloud.certificatemanager.v1.CertificateMapEntry getCertificate } } /** - * - * *
      * A list of certificate map entries for the parent resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ public Builder setCertificateMapEntries( int index, com.google.cloud.certificatemanager.v1.CertificateMapEntry value) { @@ -869,19 +716,14 @@ public Builder setCertificateMapEntries( return this; } /** - * - * *
      * A list of certificate map entries for the parent resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ public Builder setCertificateMapEntries( - int index, - com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder builderForValue) { + int index, com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder builderForValue) { if (certificateMapEntriesBuilder_ == null) { ensureCertificateMapEntriesIsMutable(); certificateMapEntries_.set(index, builderForValue.build()); @@ -892,18 +734,13 @@ public Builder setCertificateMapEntries( return this; } /** - * - * *
      * A list of certificate map entries for the parent resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ - public Builder addCertificateMapEntries( - com.google.cloud.certificatemanager.v1.CertificateMapEntry value) { + public Builder addCertificateMapEntries(com.google.cloud.certificatemanager.v1.CertificateMapEntry value) { if (certificateMapEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -917,15 +754,11 @@ public Builder addCertificateMapEntries( return this; } /** - * - * *
      * A list of certificate map entries for the parent resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ public Builder addCertificateMapEntries( int index, com.google.cloud.certificatemanager.v1.CertificateMapEntry value) { @@ -942,15 +775,11 @@ public Builder addCertificateMapEntries( return this; } /** - * - * *
      * A list of certificate map entries for the parent resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ public Builder addCertificateMapEntries( com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder builderForValue) { @@ -964,19 +793,14 @@ public Builder addCertificateMapEntries( return this; } /** - * - * *
      * A list of certificate map entries for the parent resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ public Builder addCertificateMapEntries( - int index, - com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder builderForValue) { + int index, com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder builderForValue) { if (certificateMapEntriesBuilder_ == null) { ensureCertificateMapEntriesIsMutable(); certificateMapEntries_.add(index, builderForValue.build()); @@ -987,22 +811,18 @@ public Builder addCertificateMapEntries( return this; } /** - * - * *
      * A list of certificate map entries for the parent resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ public Builder addAllCertificateMapEntries( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (certificateMapEntriesBuilder_ == null) { ensureCertificateMapEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certificateMapEntries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, certificateMapEntries_); onChanged(); } else { certificateMapEntriesBuilder_.addAllMessages(values); @@ -1010,15 +830,11 @@ public Builder addAllCertificateMapEntries( return this; } /** - * - * *
      * A list of certificate map entries for the parent resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ public Builder clearCertificateMapEntries() { if (certificateMapEntriesBuilder_ == null) { @@ -1031,15 +847,11 @@ public Builder clearCertificateMapEntries() { return this; } /** - * - * *
      * A list of certificate map entries for the parent resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ public Builder removeCertificateMapEntries(int index) { if (certificateMapEntriesBuilder_ == null) { @@ -1052,53 +864,39 @@ public Builder removeCertificateMapEntries(int index) { return this; } /** - * - * *
      * A list of certificate map entries for the parent resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ - public com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder - getCertificateMapEntriesBuilder(int index) { + public com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder getCertificateMapEntriesBuilder( + int index) { return getCertificateMapEntriesFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of certificate map entries for the parent resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ - public com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder - getCertificateMapEntriesOrBuilder(int index) { + public com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder getCertificateMapEntriesOrBuilder( + int index) { if (certificateMapEntriesBuilder_ == null) { - return certificateMapEntries_.get(index); - } else { + return certificateMapEntries_.get(index); } else { return certificateMapEntriesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of certificate map entries for the parent resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ - public java.util.List< - ? extends com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder> - getCertificateMapEntriesOrBuilderList() { + public java.util.List + getCertificateMapEntriesOrBuilderList() { if (certificateMapEntriesBuilder_ != null) { return certificateMapEntriesBuilder_.getMessageOrBuilderList(); } else { @@ -1106,67 +904,45 @@ public Builder removeCertificateMapEntries(int index) { } } /** - * - * *
      * A list of certificate map entries for the parent resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ - public com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder - addCertificateMapEntriesBuilder() { - return getCertificateMapEntriesFieldBuilder() - .addBuilder( - com.google.cloud.certificatemanager.v1.CertificateMapEntry.getDefaultInstance()); + public com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder addCertificateMapEntriesBuilder() { + return getCertificateMapEntriesFieldBuilder().addBuilder( + com.google.cloud.certificatemanager.v1.CertificateMapEntry.getDefaultInstance()); } /** - * - * *
      * A list of certificate map entries for the parent resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ - public com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder - addCertificateMapEntriesBuilder(int index) { - return getCertificateMapEntriesFieldBuilder() - .addBuilder( - index, - com.google.cloud.certificatemanager.v1.CertificateMapEntry.getDefaultInstance()); + public com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder addCertificateMapEntriesBuilder( + int index) { + return getCertificateMapEntriesFieldBuilder().addBuilder( + index, com.google.cloud.certificatemanager.v1.CertificateMapEntry.getDefaultInstance()); } /** - * - * *
      * A list of certificate map entries for the parent resource.
      * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ - public java.util.List - getCertificateMapEntriesBuilderList() { + public java.util.List + getCertificateMapEntriesBuilderList() { return getCertificateMapEntriesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMapEntry, - com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder, - com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder> + com.google.cloud.certificatemanager.v1.CertificateMapEntry, com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder, com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder> getCertificateMapEntriesFieldBuilder() { if (certificateMapEntriesBuilder_ == null) { - certificateMapEntriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMapEntry, - com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder, - com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder>( + certificateMapEntriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateMapEntry, com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder, com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder>( certificateMapEntries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1178,8 +954,6 @@ public Builder removeCertificateMapEntries(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1187,13 +961,13 @@ public Builder removeCertificateMapEntries(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 +976,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1211,14 +983,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 +999,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1235,22 +1006,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; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1258,18 +1027,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; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1277,67 +1043,57 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1345,90 +1101,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1438,30 +1184,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1471,33 +1215,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse) - private static final com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse(); + DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse(); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateMapEntriesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateMapEntriesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateMapEntriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1509,8 +1261,9 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesResponseOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesResponseOrBuilder.java similarity index 63% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesResponseOrBuilder.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesResponseOrBuilder.java index 262d3b515879..88651e57bec8 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesResponseOrBuilder.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapEntriesResponseOrBuilder.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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; -public interface ListCertificateMapEntriesResponseOrBuilder - extends +public interface ListCertificateMapEntriesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of certificate map entries for the parent resource.
    * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ - java.util.List + java.util.List getCertificateMapEntriesList(); /** - * - * *
    * A list of certificate map entries for the parent resource.
    * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ com.google.cloud.certificatemanager.v1.CertificateMapEntry getCertificateMapEntries(int index); /** - * - * *
    * A list of certificate map entries for the parent resource.
    * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ int getCertificateMapEntriesCount(); /** - * - * *
    * A list of certificate map entries for the parent resource.
    * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ - java.util.List + java.util.List getCertificateMapEntriesOrBuilderList(); /** - * - * *
    * A list of certificate map entries for the parent resource.
    * 
* - * - * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entries = 1; */ - com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder - getCertificateMapEntriesOrBuilder(int index); + com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder getCertificateMapEntriesOrBuilder( + int index); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -97,13 +59,10 @@ public interface ListCertificateMapEntriesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -111,59 +70,49 @@ public interface ListCertificateMapEntriesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsRequest.java similarity index 65% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsRequest.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsRequest.java index e61ecba2f8f0..69db1b61e1e3 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsRequest.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsRequest.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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Request for the `ListCertificateMaps` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.ListCertificateMapsRequest} */ -public final class ListCertificateMapsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCertificateMapsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.ListCertificateMapsRequest) ListCertificateMapsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCertificateMapsRequest.newBuilder() to construct. private ListCertificateMapsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCertificateMapsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,116 +28,38 @@ private ListCertificateMapsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCertificateMapsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private ListCertificateMapsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - 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(); - - pageToken_ = s; - break; - } - case 34: - { - 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; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest.class, - com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest.Builder.class); + com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest.class, com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
-   * Required. The project and location from which the certificate maps should be listed,
-   * specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the certificate maps should
+   * be listed, specified 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 @@ -164,32 +68,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 project and location from which the certificate maps should be listed,
-   * specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the certificate maps should
+   * be listed, specified 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 { @@ -200,14 +102,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Maximum number of certificate maps to return per call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -218,8 +117,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListCertificateMapsResponse`. Indicates
    * that this is a continuation of a prior `ListCertificateMaps` call, and that
@@ -227,7 +124,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -236,15 +132,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `ListCertificateMapsResponse`. Indicates
    * that this is a continuation of a prior `ListCertificateMaps` call, and that
@@ -252,15 +147,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -271,14 +167,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Filter expression to restrict the Certificates Maps returned.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -287,29 +180,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; } } /** - * - * *
    * Filter expression to restrict the Certificates Maps returned.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -320,8 +213,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * A list of Certificate Map field names used to specify the order of the
    * returned results. The default sorting order is ascending. To specify
@@ -329,7 +220,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -338,15 +228,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; } } /** - * - * *
    * A list of Certificate Map field names used to specify the order of the
    * returned results. The default sorting order is ascending. To specify
@@ -354,15 +243,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -371,7 +261,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -383,7 +272,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -399,7 +289,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -412,7 +302,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -423,7 +314,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -431,20 +322,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.certificatemanager.v1.ListCertificateMapsRequest)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest other = - (com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest) 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; + com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest other = (com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -465,151 +360,135 @@ public int hashCode() { hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; hash = (53 * hash) + getOrderBy().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListCertificateMaps` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.ListCertificateMapsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.ListCertificateMapsRequest) com.google.cloud.certificatemanager.v1.ListCertificateMapsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest.class, - com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest.Builder.class); + com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest.class, com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest.Builder.class); } - // Construct using - // com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest.newBuilder() + // Construct using com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -627,14 +506,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsRequest_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest getDefaultInstanceForType() { return com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest.getDefaultInstance(); } @@ -649,8 +527,7 @@ public com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest build() @java.lang.Override public com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest buildPartial() { - com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest result = - new com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest(this); + com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest result = new com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -664,50 +541,46 @@ public com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest 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.certificatemanager.v1.ListCertificateMapsRequest) { - return mergeFrom((com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest other) { - if (other - == com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest other) { + if (other == com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -727,7 +600,7 @@ public Builder mergeFrom( orderBy_ = other.orderBy_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -742,41 +615,73 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object parent_ = ""; /** - * - * *
-     * Required. The project and location from which the certificate maps should be listed,
-     * specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the certificate maps should
+     * be listed, specified 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; @@ -785,24 +690,21 @@ public java.lang.String getParent() { } } /** - * - * *
-     * Required. The project and location from which the certificate maps should be listed,
-     * specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the certificate maps should
+     * be listed, specified 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 { @@ -810,85 +712,69 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
-     * Required. The project and location from which the certificate maps should be listed,
-     * specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the certificate maps should
+     * be listed, specified 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 project and location from which the certificate maps should be listed,
-     * specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the certificate maps should
+     * be listed, specified 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 project and location from which the certificate maps should be listed,
-     * specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the certificate maps should
+     * be listed, specified 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_ ; /** - * - * *
      * Maximum number of certificate maps to return per call.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -896,36 +782,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of certificate maps to return per call.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of certificate maps to return per call.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -933,8 +813,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListCertificateMapsResponse`. Indicates
      * that this is a continuation of a prior `ListCertificateMaps` call, and that
@@ -942,13 +820,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -957,8 +835,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListCertificateMapsResponse`. Indicates
      * that this is a continuation of a prior `ListCertificateMaps` call, and that
@@ -966,14 +842,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -981,8 +858,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListCertificateMapsResponse`. Indicates
      * that this is a continuation of a prior `ListCertificateMaps` call, and that
@@ -990,22 +865,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListCertificateMapsResponse`. Indicates
      * that this is a continuation of a prior `ListCertificateMaps` call, and that
@@ -1013,18 +886,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListCertificateMapsResponse`. Indicates
      * that this is a continuation of a prior `ListCertificateMaps` call, and that
@@ -1032,16 +902,16 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1049,20 +919,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter expression to restrict the Certificates Maps returned.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1071,21 +939,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter expression to restrict the Certificates Maps returned.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1093,61 +960,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter expression to restrict the Certificates Maps returned.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Filter expression to restrict the Certificates Maps returned.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Filter expression to restrict the Certificates Maps returned.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1155,8 +1015,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * A list of Certificate Map field names used to specify the order of the
      * returned results. The default sorting order is ascending. To specify
@@ -1164,13 +1022,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1179,8 +1037,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * A list of Certificate Map field names used to specify the order of the
      * returned results. The default sorting order is ascending. To specify
@@ -1188,14 +1044,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1203,8 +1060,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * A list of Certificate Map field names used to specify the order of the
      * returned results. The default sorting order is ascending. To specify
@@ -1212,22 +1067,20 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * A list of Certificate Map field names used to specify the order of the
      * returned results. The default sorting order is ascending. To specify
@@ -1235,18 +1088,15 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * A list of Certificate Map field names used to specify the order of the
      * returned results. The default sorting order is ascending. To specify
@@ -1254,23 +1104,23 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1280,32 +1130,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.ListCertificateMapsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.ListCertificateMapsRequest) - private static final com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest(); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateMapsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateMapsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateMapsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1317,8 +1176,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsRequestOrBuilder.java similarity index 63% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsRequestOrBuilder.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsRequestOrBuilder.java index 42e31486d5c7..f40d128d2b3c 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsRequestOrBuilder.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsRequestOrBuilder.java @@ -1,75 +1,45 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; -public interface ListCertificateMapsRequestOrBuilder - extends +public interface ListCertificateMapsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.ListCertificateMapsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Required. The project and location from which the certificate maps should be listed,
-   * specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the certificate maps should
+   * be listed, specified 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 project and location from which the certificate maps should be listed,
-   * specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the certificate maps should
+   * be listed, specified 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(); /** - * - * *
    * Maximum number of certificate maps to return per call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value returned by the last `ListCertificateMapsResponse`. Indicates
    * that this is a continuation of a prior `ListCertificateMaps` call, and that
@@ -77,13 +47,10 @@ public interface ListCertificateMapsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListCertificateMapsResponse`. Indicates
    * that this is a continuation of a prior `ListCertificateMaps` call, and that
@@ -91,39 +58,32 @@ public interface ListCertificateMapsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Filter expression to restrict the Certificates Maps returned.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter expression to restrict the Certificates Maps returned.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * A list of Certificate Map field names used to specify the order of the
    * returned results. The default sorting order is ascending. To specify
@@ -131,13 +91,10 @@ public interface ListCertificateMapsRequestOrBuilder
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * A list of Certificate Map field names used to specify the order of the
    * returned results. The default sorting order is ascending. To specify
@@ -145,8 +102,8 @@ public interface ListCertificateMapsRequestOrBuilder
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsResponse.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsResponse.java similarity index 68% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsResponse.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsResponse.java index e5447d47a881..18c5cfcf9887 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsResponse.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsResponse.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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Response for the `ListCertificateMaps` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.ListCertificateMapsResponse} */ -public final class ListCertificateMapsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCertificateMapsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.ListCertificateMapsResponse) ListCertificateMapsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCertificateMapsResponse.newBuilder() to construct. private ListCertificateMapsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCertificateMapsResponse() { certificateMaps_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,112 +27,32 @@ private ListCertificateMapsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCertificateMapsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private ListCertificateMapsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - certificateMaps_ = - new java.util.ArrayList< - com.google.cloud.certificatemanager.v1.CertificateMap>(); - mutable_bitField0_ |= 0x00000001; - } - certificateMaps_.add( - input.readMessage( - com.google.cloud.certificatemanager.v1.CertificateMap.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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - certificateMaps_ = java.util.Collections.unmodifiableList(certificateMaps_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsResponse_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse.class, - com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse.Builder.class); + com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse.class, com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse.Builder.class); } public static final int CERTIFICATE_MAPS_FIELD_NUMBER = 1; private java.util.List certificateMaps_; /** - * - * *
    * A list of certificate maps for the parent resource.
    * 
@@ -158,13 +60,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; */ @java.lang.Override - public java.util.List - getCertificateMapsList() { + public java.util.List getCertificateMapsList() { return certificateMaps_; } /** - * - * *
    * A list of certificate maps for the parent resource.
    * 
@@ -172,13 +71,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCertificateMapsOrBuilderList() { return certificateMaps_; } /** - * - * *
    * A list of certificate maps for the parent resource.
    * 
@@ -190,8 +87,6 @@ public int getCertificateMapsCount() { return certificateMaps_.size(); } /** - * - * *
    * A list of certificate maps for the parent resource.
    * 
@@ -203,8 +98,6 @@ public com.google.cloud.certificatemanager.v1.CertificateMap getCertificateMaps( return certificateMaps_.get(index); } /** - * - * *
    * A list of certificate maps for the parent resource.
    * 
@@ -220,8 +113,6 @@ public com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder getCertifi public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -229,7 +120,6 @@ public com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder getCertifi
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -238,15 +128,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -254,15 +143,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -273,42 +163,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -316,23 +198,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -344,7 +223,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < certificateMaps_.size(); i++) { output.writeMessage(1, certificateMaps_.get(i)); } @@ -354,7 +234,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < unreachable_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -364,7 +244,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < certificateMaps_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, certificateMaps_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, certificateMaps_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -377,7 +258,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getUnreachableList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -385,18 +266,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.certificatemanager.v1.ListCertificateMapsResponse)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse other = - (com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse) obj; + com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse other = (com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse) obj; - if (!getCertificateMapsList().equals(other.getCertificateMapsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getCertificateMapsList() + .equals(other.getCertificateMapsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -417,162 +300,145 @@ public int hashCode() { hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; hash = (53 * hash) + getUnreachableList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 for the `ListCertificateMaps` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.ListCertificateMapsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.ListCertificateMapsResponse) com.google.cloud.certificatemanager.v1.ListCertificateMapsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsResponse_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse.class, - com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse.Builder.class); + com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse.class, com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse.Builder.class); } - // Construct using - // com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse.newBuilder() + // Construct using com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse.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) { - getCertificateMapsFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); if (certificateMapsBuilder_ == null) { certificateMaps_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + certificateMaps_ = null; certificateMapsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -581,16 +447,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificateMapsResponse_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse - getDefaultInstanceForType() { - return com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse - .getDefaultInstance(); + public com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse.getDefaultInstance(); } @java.lang.Override @@ -604,8 +468,7 @@ public com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse build( @java.lang.Override public com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse buildPartial() { - com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse result = - new com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse(this); + com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse result = new com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse(this); int from_bitField0_ = bitField0_; if (certificateMapsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -630,51 +493,46 @@ public com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse 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.certificatemanager.v1.ListCertificateMapsResponse) { - return mergeFrom( - (com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse other) { - if (other - == com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse other) { + if (other == com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse.getDefaultInstance()) return this; if (certificateMapsBuilder_ == null) { if (!other.certificateMaps_.isEmpty()) { if (certificateMaps_.isEmpty()) { @@ -693,10 +551,9 @@ public Builder mergeFrom( certificateMapsBuilder_ = null; certificateMaps_ = other.certificateMaps_; bitField0_ = (bitField0_ & ~0x00000001); - certificateMapsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCertificateMapsFieldBuilder() - : null; + certificateMapsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCertificateMapsFieldBuilder() : null; } else { certificateMapsBuilder_.addAllMessages(other.certificateMaps_); } @@ -716,7 +573,7 @@ public Builder mergeFrom( } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -731,54 +588,78 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.certificatemanager.v1.CertificateMap m = + input.readMessage( + com.google.cloud.certificatemanager.v1.CertificateMap.parser(), + extensionRegistry); + if (certificateMapsBuilder_ == null) { + ensureCertificateMapsIsMutable(); + certificateMaps_.add(m); + } else { + certificateMapsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; private java.util.List certificateMaps_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCertificateMapsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - certificateMaps_ = - new java.util.ArrayList( - certificateMaps_); + certificateMaps_ = new java.util.ArrayList(certificateMaps_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMap, - com.google.cloud.certificatemanager.v1.CertificateMap.Builder, - com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder> - certificateMapsBuilder_; + com.google.cloud.certificatemanager.v1.CertificateMap, com.google.cloud.certificatemanager.v1.CertificateMap.Builder, com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder> certificateMapsBuilder_; /** - * - * *
      * A list of certificate maps for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; */ - public java.util.List - getCertificateMapsList() { + public java.util.List getCertificateMapsList() { if (certificateMapsBuilder_ == null) { return java.util.Collections.unmodifiableList(certificateMaps_); } else { @@ -786,14 +667,11 @@ private void ensureCertificateMapsIsMutable() { } } /** - * - * *
      * A list of certificate maps for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; */ public int getCertificateMapsCount() { if (certificateMapsBuilder_ == null) { @@ -803,14 +681,11 @@ public int getCertificateMapsCount() { } } /** - * - * *
      * A list of certificate maps for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; */ public com.google.cloud.certificatemanager.v1.CertificateMap getCertificateMaps(int index) { if (certificateMapsBuilder_ == null) { @@ -820,14 +695,11 @@ public com.google.cloud.certificatemanager.v1.CertificateMap getCertificateMaps( } } /** - * - * *
      * A list of certificate maps for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; */ public Builder setCertificateMaps( int index, com.google.cloud.certificatemanager.v1.CertificateMap value) { @@ -844,14 +716,11 @@ public Builder setCertificateMaps( return this; } /** - * - * *
      * A list of certificate maps for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; */ public Builder setCertificateMaps( int index, com.google.cloud.certificatemanager.v1.CertificateMap.Builder builderForValue) { @@ -865,14 +734,11 @@ public Builder setCertificateMaps( return this; } /** - * - * *
      * A list of certificate maps for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; */ public Builder addCertificateMaps(com.google.cloud.certificatemanager.v1.CertificateMap value) { if (certificateMapsBuilder_ == null) { @@ -888,14 +754,11 @@ public Builder addCertificateMaps(com.google.cloud.certificatemanager.v1.Certifi return this; } /** - * - * *
      * A list of certificate maps for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; */ public Builder addCertificateMaps( int index, com.google.cloud.certificatemanager.v1.CertificateMap value) { @@ -912,14 +775,11 @@ public Builder addCertificateMaps( return this; } /** - * - * *
      * A list of certificate maps for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; */ public Builder addCertificateMaps( com.google.cloud.certificatemanager.v1.CertificateMap.Builder builderForValue) { @@ -933,14 +793,11 @@ public Builder addCertificateMaps( return this; } /** - * - * *
      * A list of certificate maps for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; */ public Builder addCertificateMaps( int index, com.google.cloud.certificatemanager.v1.CertificateMap.Builder builderForValue) { @@ -954,21 +811,18 @@ public Builder addCertificateMaps( return this; } /** - * - * *
      * A list of certificate maps for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; */ public Builder addAllCertificateMaps( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (certificateMapsBuilder_ == null) { ensureCertificateMapsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certificateMaps_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, certificateMaps_); onChanged(); } else { certificateMapsBuilder_.addAllMessages(values); @@ -976,14 +830,11 @@ public Builder addAllCertificateMaps( return this; } /** - * - * *
      * A list of certificate maps for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; */ public Builder clearCertificateMaps() { if (certificateMapsBuilder_ == null) { @@ -996,14 +847,11 @@ public Builder clearCertificateMaps() { return this; } /** - * - * *
      * A list of certificate maps for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; */ public Builder removeCertificateMaps(int index) { if (certificateMapsBuilder_ == null) { @@ -1016,49 +864,39 @@ public Builder removeCertificateMaps(int index) { return this; } /** - * - * *
      * A list of certificate maps for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; */ public com.google.cloud.certificatemanager.v1.CertificateMap.Builder getCertificateMapsBuilder( int index) { return getCertificateMapsFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of certificate maps for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; */ - public com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder - getCertificateMapsOrBuilder(int index) { + public com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder getCertificateMapsOrBuilder( + int index) { if (certificateMapsBuilder_ == null) { - return certificateMaps_.get(index); - } else { + return certificateMaps_.get(index); } else { return certificateMapsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of certificate maps for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; */ - public java.util.List - getCertificateMapsOrBuilderList() { + public java.util.List + getCertificateMapsOrBuilderList() { if (certificateMapsBuilder_ != null) { return certificateMapsBuilder_.getMessageOrBuilderList(); } else { @@ -1066,62 +904,45 @@ public com.google.cloud.certificatemanager.v1.CertificateMap.Builder getCertific } } /** - * - * *
      * A list of certificate maps for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; */ - public com.google.cloud.certificatemanager.v1.CertificateMap.Builder - addCertificateMapsBuilder() { - return getCertificateMapsFieldBuilder() - .addBuilder(com.google.cloud.certificatemanager.v1.CertificateMap.getDefaultInstance()); + public com.google.cloud.certificatemanager.v1.CertificateMap.Builder addCertificateMapsBuilder() { + return getCertificateMapsFieldBuilder().addBuilder( + com.google.cloud.certificatemanager.v1.CertificateMap.getDefaultInstance()); } /** - * - * *
      * A list of certificate maps for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; */ public com.google.cloud.certificatemanager.v1.CertificateMap.Builder addCertificateMapsBuilder( int index) { - return getCertificateMapsFieldBuilder() - .addBuilder( - index, com.google.cloud.certificatemanager.v1.CertificateMap.getDefaultInstance()); + return getCertificateMapsFieldBuilder().addBuilder( + index, com.google.cloud.certificatemanager.v1.CertificateMap.getDefaultInstance()); } /** - * - * *
      * A list of certificate maps for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; - * + * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; */ - public java.util.List - getCertificateMapsBuilderList() { + public java.util.List + getCertificateMapsBuilderList() { return getCertificateMapsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMap, - com.google.cloud.certificatemanager.v1.CertificateMap.Builder, - com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder> + com.google.cloud.certificatemanager.v1.CertificateMap, com.google.cloud.certificatemanager.v1.CertificateMap.Builder, com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder> getCertificateMapsFieldBuilder() { if (certificateMapsBuilder_ == null) { - certificateMapsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMap, - com.google.cloud.certificatemanager.v1.CertificateMap.Builder, - com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder>( + certificateMapsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateMap, com.google.cloud.certificatemanager.v1.CertificateMap.Builder, com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder>( certificateMaps_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1133,8 +954,6 @@ public com.google.cloud.certificatemanager.v1.CertificateMap.Builder addCertific private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1142,13 +961,13 @@ public com.google.cloud.certificatemanager.v1.CertificateMap.Builder addCertific
      * 
* * 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; @@ -1157,8 +976,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1166,14 +983,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 { @@ -1181,8 +999,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1190,22 +1006,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; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1213,18 +1027,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; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1232,67 +1043,57 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1300,90 +1101,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1393,30 +1184,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1426,32 +1215,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.ListCertificateMapsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.ListCertificateMapsResponse) - private static final com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse(); } - public static com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCertificateMapsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCertificateMapsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCertificateMapsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1463,8 +1261,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsResponseOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsResponseOrBuilder.java similarity index 76% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsResponseOrBuilder.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsResponseOrBuilder.java index 86825476dafb..97dd9076c018 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsResponseOrBuilder.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificateMapsResponseOrBuilder.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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; -public interface ListCertificateMapsResponseOrBuilder - extends +public interface ListCertificateMapsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.ListCertificateMapsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of certificate maps for the parent resource.
    * 
* * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; */ - java.util.List getCertificateMapsList(); + java.util.List + getCertificateMapsList(); /** - * - * *
    * A list of certificate maps for the parent resource.
    * 
@@ -44,8 +25,6 @@ public interface ListCertificateMapsResponseOrBuilder */ com.google.cloud.certificatemanager.v1.CertificateMap getCertificateMaps(int index); /** - * - * *
    * A list of certificate maps for the parent resource.
    * 
@@ -54,19 +33,15 @@ public interface ListCertificateMapsResponseOrBuilder */ int getCertificateMapsCount(); /** - * - * *
    * A list of certificate maps for the parent resource.
    * 
* * repeated .google.cloud.certificatemanager.v1.CertificateMap certificate_maps = 1; */ - java.util.List + java.util.List getCertificateMapsOrBuilderList(); /** - * - * *
    * A list of certificate maps for the parent resource.
    * 
@@ -77,8 +52,6 @@ com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder getCertificateMap int index); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -86,13 +59,10 @@ com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder getCertificateMap
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -100,59 +70,49 @@ com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder getCertificateMap
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesRequest.java similarity index 65% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesRequest.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesRequest.java index 08841c2fb767..b32cec55d5c3 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesRequest.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Request for the `ListCertificates` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.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.certificatemanager.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,116 +28,38 @@ 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) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - 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(); - - pageToken_ = s; - break; - } - case 34: - { - 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; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificatesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificatesRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.ListCertificatesRequest.class, - com.google.cloud.certificatemanager.v1.ListCertificatesRequest.Builder.class); + com.google.cloud.certificatemanager.v1.ListCertificatesRequest.class, com.google.cloud.certificatemanager.v1.ListCertificatesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
-   * Required. The project and location from which the certificate should be listed,
-   * specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the certificate should be
+   * listed, specified 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 @@ -164,32 +68,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 project and location from which the certificate should be listed,
-   * specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the certificate should be
+   * listed, specified 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 { @@ -200,14 +102,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Maximum number of certificates to return per call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -218,8 +117,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListCertificatesResponse`. Indicates that
    * this is a continuation of a prior `ListCertificates` call, and that the
@@ -227,7 +124,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -236,15 +132,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `ListCertificatesResponse`. Indicates that
    * this is a continuation of a prior `ListCertificates` call, and that the
@@ -252,15 +147,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -271,14 +167,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Filter expression to restrict the Certificates returned.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -287,29 +180,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; } } /** - * - * *
    * Filter expression to restrict the Certificates returned.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -320,8 +213,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * A list of Certificate field names used to specify the order of the returned
    * results. The default sorting order is ascending. To specify descending
@@ -329,7 +220,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -338,15 +228,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; } } /** - * - * *
    * A list of Certificate field names used to specify the order of the returned
    * results. The default sorting order is ascending. To specify descending
@@ -354,15 +243,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -371,7 +261,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -383,7 +272,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -399,7 +289,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -412,7 +302,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -423,7 +314,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -431,20 +322,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.certificatemanager.v1.ListCertificatesRequest)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.ListCertificatesRequest other = - (com.google.cloud.certificatemanager.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; + com.google.cloud.certificatemanager.v1.ListCertificatesRequest other = (com.google.cloud.certificatemanager.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -465,149 +360,135 @@ public int hashCode() { hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; hash = (53 * hash) + getOrderBy().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.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.certificatemanager.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.certificatemanager.v1.ListCertificatesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.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.certificatemanager.v1.ListCertificatesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.ListCertificatesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.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.certificatemanager.v1.ListCertificatesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.ListCertificatesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.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.certificatemanager.v1.ListCertificatesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.ListCertificatesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.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.certificatemanager.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.certificatemanager.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.certificatemanager.v1.ListCertificatesRequest prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.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 for the `ListCertificates` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.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.certificatemanager.v1.ListCertificatesRequest) com.google.cloud.certificatemanager.v1.ListCertificatesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificatesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificatesRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.ListCertificatesRequest.class, - com.google.cloud.certificatemanager.v1.ListCertificatesRequest.Builder.class); + com.google.cloud.certificatemanager.v1.ListCertificatesRequest.class, com.google.cloud.certificatemanager.v1.ListCertificatesRequest.Builder.class); } // Construct using com.google.cloud.certificatemanager.v1.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -625,14 +506,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificatesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificatesRequest_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.ListCertificatesRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.ListCertificatesRequest getDefaultInstanceForType() { return com.google.cloud.certificatemanager.v1.ListCertificatesRequest.getDefaultInstance(); } @@ -647,8 +527,7 @@ public com.google.cloud.certificatemanager.v1.ListCertificatesRequest build() { @java.lang.Override public com.google.cloud.certificatemanager.v1.ListCertificatesRequest buildPartial() { - com.google.cloud.certificatemanager.v1.ListCertificatesRequest result = - new com.google.cloud.certificatemanager.v1.ListCertificatesRequest(this); + com.google.cloud.certificatemanager.v1.ListCertificatesRequest result = new com.google.cloud.certificatemanager.v1.ListCertificatesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -662,39 +541,38 @@ public com.google.cloud.certificatemanager.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.certificatemanager.v1.ListCertificatesRequest) { - return mergeFrom((com.google.cloud.certificatemanager.v1.ListCertificatesRequest) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.ListCertificatesRequest)other); } else { super.mergeFrom(other); return this; @@ -702,9 +580,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.certificatemanager.v1.ListCertificatesRequest other) { - if (other - == com.google.cloud.certificatemanager.v1.ListCertificatesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.certificatemanager.v1.ListCertificatesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -724,7 +600,7 @@ public Builder mergeFrom(com.google.cloud.certificatemanager.v1.ListCertificates orderBy_ = other.orderBy_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -739,41 +615,73 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.ListCertificatesRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.ListCertificatesRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object parent_ = ""; /** - * - * *
-     * Required. The project and location from which the certificate should be listed,
-     * specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the certificate should be
+     * listed, specified 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 +690,21 @@ public java.lang.String getParent() { } } /** - * - * *
-     * Required. The project and location from which the certificate should be listed,
-     * specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the certificate should be
+     * listed, specified 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,85 +712,69 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
-     * Required. The project and location from which the certificate should be listed,
-     * specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the certificate should be
+     * listed, specified 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 project and location from which the certificate should be listed,
-     * specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the certificate should be
+     * listed, specified 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 project and location from which the certificate should be listed,
-     * specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the certificate should be
+     * listed, specified 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_ ; /** - * - * *
      * Maximum number of certificates to return per call.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -893,36 +782,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of certificates to return per call.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of certificates to return per call.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -930,8 +813,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListCertificatesResponse`. Indicates that
      * this is a continuation of a prior `ListCertificates` call, and that the
@@ -939,13 +820,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -954,8 +835,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListCertificatesResponse`. Indicates that
      * this is a continuation of a prior `ListCertificates` call, and that the
@@ -963,14 +842,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -978,8 +858,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListCertificatesResponse`. Indicates that
      * this is a continuation of a prior `ListCertificates` call, and that the
@@ -987,22 +865,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListCertificatesResponse`. Indicates that
      * this is a continuation of a prior `ListCertificates` call, and that the
@@ -1010,18 +886,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListCertificatesResponse`. Indicates that
      * this is a continuation of a prior `ListCertificates` call, and that the
@@ -1029,16 +902,16 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1046,20 +919,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter expression to restrict the Certificates returned.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1068,21 +939,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter expression to restrict the Certificates returned.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1090,61 +960,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter expression to restrict the Certificates returned.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Filter expression to restrict the Certificates returned.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Filter expression to restrict the Certificates returned.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1152,8 +1015,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * A list of Certificate field names used to specify the order of the returned
      * results. The default sorting order is ascending. To specify descending
@@ -1161,13 +1022,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1176,8 +1037,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * A list of Certificate field names used to specify the order of the returned
      * results. The default sorting order is ascending. To specify descending
@@ -1185,14 +1044,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1200,8 +1060,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * A list of Certificate field names used to specify the order of the returned
      * results. The default sorting order is ascending. To specify descending
@@ -1209,22 +1067,20 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * A list of Certificate field names used to specify the order of the returned
      * results. The default sorting order is ascending. To specify descending
@@ -1232,18 +1088,15 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * A list of Certificate field names used to specify the order of the returned
      * results. The default sorting order is ascending. To specify descending
@@ -1251,23 +1104,23 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1277,32 +1130,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.ListCertificatesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.ListCertificatesRequest) - private static final com.google.cloud.certificatemanager.v1.ListCertificatesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.ListCertificatesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.ListCertificatesRequest(); } - public static com.google.cloud.certificatemanager.v1.ListCertificatesRequest - getDefaultInstance() { + public static com.google.cloud.certificatemanager.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1314,8 +1176,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.certificatemanager.v1.ListCertificatesRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.ListCertificatesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesRequestOrBuilder.java similarity index 63% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesRequestOrBuilder.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesRequestOrBuilder.java index 48ed00ef5698..e3d28bb7b531 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesRequestOrBuilder.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesRequestOrBuilder.java @@ -1,75 +1,45 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; -public interface ListCertificatesRequestOrBuilder - extends +public interface ListCertificatesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.ListCertificatesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Required. The project and location from which the certificate should be listed,
-   * specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the certificate should be
+   * listed, specified 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 project and location from which the certificate should be listed,
-   * specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the certificate should be
+   * listed, specified 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(); /** - * - * *
    * Maximum number of certificates to return per call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value returned by the last `ListCertificatesResponse`. Indicates that
    * this is a continuation of a prior `ListCertificates` call, and that the
@@ -77,13 +47,10 @@ public interface ListCertificatesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListCertificatesResponse`. Indicates that
    * this is a continuation of a prior `ListCertificates` call, and that the
@@ -91,39 +58,32 @@ public interface ListCertificatesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Filter expression to restrict the Certificates returned.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter expression to restrict the Certificates returned.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * A list of Certificate field names used to specify the order of the returned
    * results. The default sorting order is ascending. To specify descending
@@ -131,13 +91,10 @@ public interface ListCertificatesRequestOrBuilder
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * A list of Certificate field names used to specify the order of the returned
    * results. The default sorting order is ascending. To specify descending
@@ -145,8 +102,8 @@ public interface ListCertificatesRequestOrBuilder
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesResponse.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesResponse.java similarity index 71% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesResponse.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesResponse.java index 514575f04186..ca2c2c16300c 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesResponse.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Response for the `ListCertificates` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.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.certificatemanager.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,111 +27,32 @@ 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) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - 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.certificatemanager.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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - certificates_ = java.util.Collections.unmodifiableList(certificates_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificatesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificatesResponse_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.ListCertificatesResponse.class, - com.google.cloud.certificatemanager.v1.ListCertificatesResponse.Builder.class); + com.google.cloud.certificatemanager.v1.ListCertificatesResponse.class, com.google.cloud.certificatemanager.v1.ListCertificatesResponse.Builder.class); } public static final int CERTIFICATES_FIELD_NUMBER = 1; private java.util.List certificates_; /** - * - * *
    * A list of certificates for the parent resource.
    * 
@@ -161,8 +64,6 @@ public java.util.List getCer return certificates_; } /** - * - * *
    * A list of certificates for the parent resource.
    * 
@@ -170,13 +71,11 @@ public java.util.List getCer * repeated .google.cloud.certificatemanager.v1.Certificate certificates = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCertificatesOrBuilderList() { return certificates_; } /** - * - * *
    * A list of certificates for the parent resource.
    * 
@@ -188,8 +87,6 @@ public int getCertificatesCount() { return certificates_.size(); } /** - * - * *
    * A list of certificates for the parent resource.
    * 
@@ -201,8 +98,6 @@ public com.google.cloud.certificatemanager.v1.Certificate getCertificates(int in return certificates_.get(index); } /** - * - * *
    * A list of certificates for the parent resource.
    * 
@@ -218,8 +113,6 @@ public com.google.cloud.certificatemanager.v1.CertificateOrBuilder getCertificat public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -227,7 +120,6 @@ public com.google.cloud.certificatemanager.v1.CertificateOrBuilder getCertificat
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -236,15 +128,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -252,15 +143,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -271,42 +163,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 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 that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * A list of locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -314,23 +198,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * A list of locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -342,7 +223,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -352,7 +234,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < unreachable_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -362,7 +244,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_); @@ -375,7 +258,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getUnreachableList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -383,18 +266,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.certificatemanager.v1.ListCertificatesResponse)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.ListCertificatesResponse other = - (com.google.cloud.certificatemanager.v1.ListCertificatesResponse) obj; + com.google.cloud.certificatemanager.v1.ListCertificatesResponse other = (com.google.cloud.certificatemanager.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 (!unknownFields.equals(other.unknownFields)) return false; + if (!getCertificatesList() + .equals(other.getCertificatesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -415,160 +300,145 @@ public int hashCode() { hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; hash = (53 * hash) + getUnreachableList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.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.certificatemanager.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.certificatemanager.v1.ListCertificatesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.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.certificatemanager.v1.ListCertificatesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.ListCertificatesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.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.certificatemanager.v1.ListCertificatesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.ListCertificatesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.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.certificatemanager.v1.ListCertificatesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.ListCertificatesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.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.certificatemanager.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.certificatemanager.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.certificatemanager.v1.ListCertificatesResponse prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.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 for the `ListCertificates` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.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.certificatemanager.v1.ListCertificatesResponse) com.google.cloud.certificatemanager.v1.ListCertificatesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificatesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificatesResponse_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.ListCertificatesResponse.class, - com.google.cloud.certificatemanager.v1.ListCertificatesResponse.Builder.class); + com.google.cloud.certificatemanager.v1.ListCertificatesResponse.class, com.google.cloud.certificatemanager.v1.ListCertificatesResponse.Builder.class); } // Construct using com.google.cloud.certificatemanager.v1.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) { - getCertificatesFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); if (certificatesBuilder_ == null) { certificates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + certificates_ = null; certificatesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -577,14 +447,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListCertificatesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListCertificatesResponse_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.ListCertificatesResponse - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.ListCertificatesResponse getDefaultInstanceForType() { return com.google.cloud.certificatemanager.v1.ListCertificatesResponse.getDefaultInstance(); } @@ -599,8 +468,7 @@ public com.google.cloud.certificatemanager.v1.ListCertificatesResponse build() { @java.lang.Override public com.google.cloud.certificatemanager.v1.ListCertificatesResponse buildPartial() { - com.google.cloud.certificatemanager.v1.ListCertificatesResponse result = - new com.google.cloud.certificatemanager.v1.ListCertificatesResponse(this); + com.google.cloud.certificatemanager.v1.ListCertificatesResponse result = new com.google.cloud.certificatemanager.v1.ListCertificatesResponse(this); int from_bitField0_ = bitField0_; if (certificatesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -625,50 +493,46 @@ public com.google.cloud.certificatemanager.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.certificatemanager.v1.ListCertificatesResponse) { - return mergeFrom((com.google.cloud.certificatemanager.v1.ListCertificatesResponse) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.ListCertificatesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.ListCertificatesResponse other) { - if (other - == com.google.cloud.certificatemanager.v1.ListCertificatesResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.ListCertificatesResponse other) { + if (other == com.google.cloud.certificatemanager.v1.ListCertificatesResponse.getDefaultInstance()) return this; if (certificatesBuilder_ == null) { if (!other.certificates_.isEmpty()) { if (certificates_.isEmpty()) { @@ -687,10 +551,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_); } @@ -710,7 +573,7 @@ public Builder mergeFrom( } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -725,53 +588,78 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.ListCertificatesResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.certificatemanager.v1.Certificate m = + input.readMessage( + com.google.cloud.certificatemanager.v1.Certificate.parser(), + extensionRegistry); + if (certificatesBuilder_ == null) { + ensureCertificatesIsMutable(); + certificates_.add(m); + } else { + certificatesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.ListCertificatesResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally 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.certificatemanager.v1.Certificate, - com.google.cloud.certificatemanager.v1.Certificate.Builder, - com.google.cloud.certificatemanager.v1.CertificateOrBuilder> - certificatesBuilder_; + com.google.cloud.certificatemanager.v1.Certificate, com.google.cloud.certificatemanager.v1.Certificate.Builder, com.google.cloud.certificatemanager.v1.CertificateOrBuilder> certificatesBuilder_; /** - * - * *
      * A list of certificates for the parent resource.
      * 
* * repeated .google.cloud.certificatemanager.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 +667,6 @@ private void ensureCertificatesIsMutable() { } } /** - * - * *
      * A list of certificates for the parent resource.
      * 
@@ -795,8 +681,6 @@ public int getCertificatesCount() { } } /** - * - * *
      * A list of certificates for the parent resource.
      * 
@@ -811,8 +695,6 @@ public com.google.cloud.certificatemanager.v1.Certificate getCertificates(int in } } /** - * - * *
      * A list of certificates for the parent resource.
      * 
@@ -834,8 +716,6 @@ public Builder setCertificates( return this; } /** - * - * *
      * A list of certificates for the parent resource.
      * 
@@ -854,8 +734,6 @@ public Builder setCertificates( return this; } /** - * - * *
      * A list of certificates for the parent resource.
      * 
@@ -876,8 +754,6 @@ public Builder addCertificates(com.google.cloud.certificatemanager.v1.Certificat return this; } /** - * - * *
      * A list of certificates for the parent resource.
      * 
@@ -899,8 +775,6 @@ public Builder addCertificates( return this; } /** - * - * *
      * A list of certificates for the parent resource.
      * 
@@ -919,8 +793,6 @@ public Builder addCertificates( return this; } /** - * - * *
      * A list of certificates for the parent resource.
      * 
@@ -939,8 +811,6 @@ public Builder addCertificates( return this; } /** - * - * *
      * A list of certificates for the parent resource.
      * 
@@ -951,7 +821,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 +830,6 @@ public Builder addAllCertificates( return this; } /** - * - * *
      * A list of certificates for the parent resource.
      * 
@@ -978,8 +847,6 @@ public Builder clearCertificates() { return this; } /** - * - * *
      * A list of certificates for the parent resource.
      * 
@@ -997,8 +864,6 @@ public Builder removeCertificates(int index) { return this; } /** - * - * *
      * A list of certificates for the parent resource.
      * 
@@ -1010,8 +875,6 @@ public com.google.cloud.certificatemanager.v1.Certificate.Builder getCertificate return getCertificatesFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of certificates for the parent resource.
      * 
@@ -1021,22 +884,19 @@ public com.google.cloud.certificatemanager.v1.Certificate.Builder getCertificate public com.google.cloud.certificatemanager.v1.CertificateOrBuilder getCertificatesOrBuilder( int index) { if (certificatesBuilder_ == null) { - return certificates_.get(index); - } else { + return certificates_.get(index); } else { return certificatesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of certificates for the parent resource.
      * 
* * repeated .google.cloud.certificatemanager.v1.Certificate certificates = 1; */ - public java.util.List - getCertificatesOrBuilderList() { + public java.util.List + getCertificatesOrBuilderList() { if (certificatesBuilder_ != null) { return certificatesBuilder_.getMessageOrBuilderList(); } else { @@ -1044,8 +904,6 @@ public com.google.cloud.certificatemanager.v1.CertificateOrBuilder getCertificat } } /** - * - * *
      * A list of certificates for the parent resource.
      * 
@@ -1053,12 +911,10 @@ public com.google.cloud.certificatemanager.v1.CertificateOrBuilder getCertificat * repeated .google.cloud.certificatemanager.v1.Certificate certificates = 1; */ public com.google.cloud.certificatemanager.v1.Certificate.Builder addCertificatesBuilder() { - return getCertificatesFieldBuilder() - .addBuilder(com.google.cloud.certificatemanager.v1.Certificate.getDefaultInstance()); + return getCertificatesFieldBuilder().addBuilder( + com.google.cloud.certificatemanager.v1.Certificate.getDefaultInstance()); } /** - * - * *
      * A list of certificates for the parent resource.
      * 
@@ -1067,36 +923,30 @@ public com.google.cloud.certificatemanager.v1.Certificate.Builder addCertificate */ public com.google.cloud.certificatemanager.v1.Certificate.Builder addCertificatesBuilder( int index) { - return getCertificatesFieldBuilder() - .addBuilder( - index, com.google.cloud.certificatemanager.v1.Certificate.getDefaultInstance()); + return getCertificatesFieldBuilder().addBuilder( + index, com.google.cloud.certificatemanager.v1.Certificate.getDefaultInstance()); } /** - * - * *
      * A list of certificates for the parent resource.
      * 
* * repeated .google.cloud.certificatemanager.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.certificatemanager.v1.Certificate, - com.google.cloud.certificatemanager.v1.Certificate.Builder, - com.google.cloud.certificatemanager.v1.CertificateOrBuilder> + com.google.cloud.certificatemanager.v1.Certificate, com.google.cloud.certificatemanager.v1.Certificate.Builder, com.google.cloud.certificatemanager.v1.CertificateOrBuilder> getCertificatesFieldBuilder() { if (certificatesBuilder_ == null) { - certificatesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.certificatemanager.v1.Certificate, - com.google.cloud.certificatemanager.v1.Certificate.Builder, - com.google.cloud.certificatemanager.v1.CertificateOrBuilder>( - certificates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + certificatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.certificatemanager.v1.Certificate, com.google.cloud.certificatemanager.v1.Certificate.Builder, com.google.cloud.certificatemanager.v1.CertificateOrBuilder>( + certificates_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); certificates_ = null; } return certificatesBuilder_; @@ -1104,8 +954,6 @@ public com.google.cloud.certificatemanager.v1.Certificate.Builder addCertificate private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1113,13 +961,13 @@ public com.google.cloud.certificatemanager.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 +976,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1137,14 +983,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 +999,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1161,22 +1006,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; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1184,18 +1027,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; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1203,67 +1043,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 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 that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * A list of locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1271,90 +1101,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * A list of locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * A list of locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * A list of locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * A list of locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1364,30 +1184,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * A list of locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1397,32 +1215,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.ListCertificatesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.ListCertificatesResponse) - private static final com.google.cloud.certificatemanager.v1.ListCertificatesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.ListCertificatesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.ListCertificatesResponse(); } - public static com.google.cloud.certificatemanager.v1.ListCertificatesResponse - getDefaultInstance() { + public static com.google.cloud.certificatemanager.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1434,8 +1261,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.certificatemanager.v1.ListCertificatesResponse - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.ListCertificatesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesResponseOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesResponseOrBuilder.java similarity index 75% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesResponseOrBuilder.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesResponseOrBuilder.java index ef36a5737cf0..f5fdc75de1cc 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListCertificatesResponseOrBuilder.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; -public interface ListCertificatesResponseOrBuilder - extends +public interface ListCertificatesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.ListCertificatesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of certificates for the parent resource.
    * 
* * repeated .google.cloud.certificatemanager.v1.Certificate certificates = 1; */ - java.util.List getCertificatesList(); + java.util.List + getCertificatesList(); /** - * - * *
    * A list of certificates for the parent resource.
    * 
@@ -44,8 +25,6 @@ public interface ListCertificatesResponseOrBuilder */ com.google.cloud.certificatemanager.v1.Certificate getCertificates(int index); /** - * - * *
    * A list of certificates for the parent resource.
    * 
@@ -54,30 +33,25 @@ public interface ListCertificatesResponseOrBuilder */ int getCertificatesCount(); /** - * - * *
    * A list of certificates for the parent resource.
    * 
* * repeated .google.cloud.certificatemanager.v1.Certificate certificates = 1; */ - java.util.List + java.util.List getCertificatesOrBuilderList(); /** - * - * *
    * A list of certificates for the parent resource.
    * 
* * repeated .google.cloud.certificatemanager.v1.Certificate certificates = 1; */ - com.google.cloud.certificatemanager.v1.CertificateOrBuilder getCertificatesOrBuilder(int index); + com.google.cloud.certificatemanager.v1.CertificateOrBuilder getCertificatesOrBuilder( + int index); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -85,13 +59,10 @@ public interface ListCertificatesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -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 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 that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * A list of locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * A list of locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsRequest.java similarity index 64% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsRequest.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsRequest.java index 8c0cd6b6195a..03df0ae34b07 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsRequest.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsRequest.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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Request for the `ListDnsAuthorizations` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest} */ -public final class ListDnsAuthorizationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDnsAuthorizationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest) ListDnsAuthorizationsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDnsAuthorizationsRequest.newBuilder() to construct. private ListDnsAuthorizationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDnsAuthorizationsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,116 +28,38 @@ private ListDnsAuthorizationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDnsAuthorizationsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private ListDnsAuthorizationsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - 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(); - - pageToken_ = s; - break; - } - case 34: - { - 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; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest.class, - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest.Builder.class); + com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest.class, com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
-   * Required. The project and location from which the dns authorizations should be
-   * listed, specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the dns authorizations should
+   * be listed, specified 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 @@ -164,32 +68,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 project and location from which the dns authorizations should be
-   * listed, specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the dns authorizations should
+   * be listed, specified 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 { @@ -200,14 +102,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Maximum number of dns authorizations to return per call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -218,8 +117,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * The value returned by the last `ListDnsAuthorizationsResponse`. Indicates
    * that this is a continuation of a prior `ListDnsAuthorizations` call, and
@@ -227,7 +124,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -236,15 +132,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * The value returned by the last `ListDnsAuthorizationsResponse`. Indicates
    * that this is a continuation of a prior `ListDnsAuthorizations` call, and
@@ -252,15 +147,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -271,14 +167,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Filter expression to restrict the Dns Authorizations returned.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -287,29 +180,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; } } /** - * - * *
    * Filter expression to restrict the Dns Authorizations returned.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -320,8 +213,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * A list of Dns Authorization field names used to specify the order of the
    * returned results. The default sorting order is ascending. To specify
@@ -329,7 +220,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -338,15 +228,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; } } /** - * - * *
    * A list of Dns Authorization field names used to specify the order of the
    * returned results. The default sorting order is ascending. To specify
@@ -354,15 +243,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -371,7 +261,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -383,7 +272,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -399,7 +289,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -412,7 +302,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -423,7 +314,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -431,20 +322,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.certificatemanager.v1.ListDnsAuthorizationsRequest)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest other = - (com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest) 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; + com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest other = (com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -465,151 +360,135 @@ public int hashCode() { hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; hash = (53 * hash) + getOrderBy().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListDnsAuthorizations` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest) com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest.class, - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest.Builder.class); + com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest.class, com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest.Builder.class); } - // Construct using - // com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest.newBuilder() + // Construct using com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -627,16 +506,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsRequest_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest - getDefaultInstanceForType() { - return com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest - .getDefaultInstance(); + public com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest.getDefaultInstance(); } @java.lang.Override @@ -650,8 +527,7 @@ public com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest build @java.lang.Override public com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest buildPartial() { - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest result = - new com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest(this); + com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest result = new com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -665,51 +541,46 @@ public com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest 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.certificatemanager.v1.ListDnsAuthorizationsRequest) { - return mergeFrom( - (com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest other) { - if (other - == com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest other) { + if (other == com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -729,7 +600,7 @@ public Builder mergeFrom( orderBy_ = other.orderBy_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -744,41 +615,73 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private java.lang.Object parent_ = ""; /** - * - * *
-     * Required. The project and location from which the dns authorizations should be
-     * listed, specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the dns authorizations should
+     * be listed, specified 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; @@ -787,24 +690,21 @@ public java.lang.String getParent() { } } /** - * - * *
-     * Required. The project and location from which the dns authorizations should be
-     * listed, specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the dns authorizations should
+     * be listed, specified 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 { @@ -812,85 +712,69 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
-     * Required. The project and location from which the dns authorizations should be
-     * listed, specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the dns authorizations should
+     * be listed, specified 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 project and location from which the dns authorizations should be
-     * listed, specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the dns authorizations should
+     * be listed, specified 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 project and location from which the dns authorizations should be
-     * listed, specified in the format `projects/*/locations/*`.
+     * Required. The project and location from which the dns authorizations should
+     * be listed, specified 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_ ; /** - * - * *
      * Maximum number of dns authorizations to return per call.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -898,36 +782,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of dns authorizations to return per call.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of dns authorizations to return per call.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -935,8 +813,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * The value returned by the last `ListDnsAuthorizationsResponse`. Indicates
      * that this is a continuation of a prior `ListDnsAuthorizations` call, and
@@ -944,13 +820,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -959,8 +835,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * The value returned by the last `ListDnsAuthorizationsResponse`. Indicates
      * that this is a continuation of a prior `ListDnsAuthorizations` call, and
@@ -968,14 +842,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -983,8 +858,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * The value returned by the last `ListDnsAuthorizationsResponse`. Indicates
      * that this is a continuation of a prior `ListDnsAuthorizations` call, and
@@ -992,22 +865,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListDnsAuthorizationsResponse`. Indicates
      * that this is a continuation of a prior `ListDnsAuthorizations` call, and
@@ -1015,18 +886,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * The value returned by the last `ListDnsAuthorizationsResponse`. Indicates
      * that this is a continuation of a prior `ListDnsAuthorizations` call, and
@@ -1034,16 +902,16 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1051,20 +919,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter expression to restrict the Dns Authorizations returned.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1073,21 +939,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter expression to restrict the Dns Authorizations returned.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1095,61 +960,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter expression to restrict the Dns Authorizations returned.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Filter expression to restrict the Dns Authorizations returned.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Filter expression to restrict the Dns Authorizations returned.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1157,8 +1015,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * A list of Dns Authorization field names used to specify the order of the
      * returned results. The default sorting order is ascending. To specify
@@ -1166,13 +1022,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1181,8 +1037,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * A list of Dns Authorization field names used to specify the order of the
      * returned results. The default sorting order is ascending. To specify
@@ -1190,14 +1044,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1205,8 +1060,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * A list of Dns Authorization field names used to specify the order of the
      * returned results. The default sorting order is ascending. To specify
@@ -1214,22 +1067,20 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * A list of Dns Authorization field names used to specify the order of the
      * returned results. The default sorting order is ascending. To specify
@@ -1237,18 +1088,15 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * A list of Dns Authorization field names used to specify the order of the
      * returned results. The default sorting order is ascending. To specify
@@ -1256,23 +1104,23 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1282,32 +1130,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest) - private static final com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest(); } - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDnsAuthorizationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDnsAuthorizationsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDnsAuthorizationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1319,8 +1176,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsRequestOrBuilder.java similarity index 63% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsRequestOrBuilder.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsRequestOrBuilder.java index 6fec350fd742..6d05de1ce769 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsRequestOrBuilder.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsRequestOrBuilder.java @@ -1,75 +1,45 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; -public interface ListDnsAuthorizationsRequestOrBuilder - extends +public interface ListDnsAuthorizationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Required. The project and location from which the dns authorizations should be
-   * listed, specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the dns authorizations should
+   * be listed, specified 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 project and location from which the dns authorizations should be
-   * listed, specified in the format `projects/*/locations/*`.
+   * Required. The project and location from which the dns authorizations should
+   * be listed, specified 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(); /** - * - * *
    * Maximum number of dns authorizations to return per call.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * The value returned by the last `ListDnsAuthorizationsResponse`. Indicates
    * that this is a continuation of a prior `ListDnsAuthorizations` call, and
@@ -77,13 +47,10 @@ public interface ListDnsAuthorizationsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * The value returned by the last `ListDnsAuthorizationsResponse`. Indicates
    * that this is a continuation of a prior `ListDnsAuthorizations` call, and
@@ -91,39 +58,32 @@ public interface ListDnsAuthorizationsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Filter expression to restrict the Dns Authorizations returned.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter expression to restrict the Dns Authorizations returned.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * A list of Dns Authorization field names used to specify the order of the
    * returned results. The default sorting order is ascending. To specify
@@ -131,13 +91,10 @@ public interface ListDnsAuthorizationsRequestOrBuilder
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * A list of Dns Authorization field names used to specify the order of the
    * returned results. The default sorting order is ascending. To specify
@@ -145,8 +102,8 @@ public interface ListDnsAuthorizationsRequestOrBuilder
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsResponse.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsResponse.java similarity index 67% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsResponse.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsResponse.java index cf50b1139e53..0ad954b10674 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsResponse.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsResponse.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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Response for the `ListDnsAuthorizations` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse} */ -public final class ListDnsAuthorizationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDnsAuthorizationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse) ListDnsAuthorizationsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDnsAuthorizationsResponse.newBuilder() to construct. private ListDnsAuthorizationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDnsAuthorizationsResponse() { dnsAuthorizations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,189 +27,92 @@ private ListDnsAuthorizationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDnsAuthorizationsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private ListDnsAuthorizationsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dnsAuthorizations_ = - new java.util.ArrayList< - com.google.cloud.certificatemanager.v1.DnsAuthorization>(); - mutable_bitField0_ |= 0x00000001; - } - dnsAuthorizations_.add( - input.readMessage( - com.google.cloud.certificatemanager.v1.DnsAuthorization.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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - dnsAuthorizations_ = java.util.Collections.unmodifiableList(dnsAuthorizations_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsResponse_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse.class, - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse.Builder.class); + com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse.class, com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse.Builder.class); } public static final int DNS_AUTHORIZATIONS_FIELD_NUMBER = 1; - private java.util.List - dnsAuthorizations_; + private java.util.List dnsAuthorizations_; /** - * - * *
    * A list of dns authorizations for the parent resource.
    * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ @java.lang.Override - public java.util.List - getDnsAuthorizationsList() { + public java.util.List getDnsAuthorizationsList() { return dnsAuthorizations_; } /** - * - * *
    * A list of dns authorizations for the parent resource.
    * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDnsAuthorizationsOrBuilderList() { return dnsAuthorizations_; } /** - * - * *
    * A list of dns authorizations for the parent resource.
    * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ @java.lang.Override public int getDnsAuthorizationsCount() { return dnsAuthorizations_.size(); } /** - * - * *
    * A list of dns authorizations for the parent resource.
    * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ @java.lang.Override public com.google.cloud.certificatemanager.v1.DnsAuthorization getDnsAuthorizations(int index) { return dnsAuthorizations_.get(index); } /** - * - * *
    * A list of dns authorizations for the parent resource.
    * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder - getDnsAuthorizationsOrBuilder(int index) { + public com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder getDnsAuthorizationsOrBuilder( + int index) { return dnsAuthorizations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -235,7 +120,6 @@ public com.google.cloud.certificatemanager.v1.DnsAuthorization getDnsAuthorizati
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -244,15 +128,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -260,15 +143,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -279,42 +163,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -322,23 +198,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -350,7 +223,8 @@ public final boolean isInitialized() { } @java.lang.Override - 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 < dnsAuthorizations_.size(); i++) { output.writeMessage(1, dnsAuthorizations_.get(i)); } @@ -360,7 +234,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < unreachable_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -370,8 +244,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < dnsAuthorizations_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, dnsAuthorizations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, dnsAuthorizations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -384,7 +258,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getUnreachableList().size(); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -392,18 +266,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.certificatemanager.v1.ListDnsAuthorizationsResponse)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse other = - (com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse) obj; + com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse other = (com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse) obj; - if (!getDnsAuthorizationsList().equals(other.getDnsAuthorizationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getDnsAuthorizationsList() + .equals(other.getDnsAuthorizationsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -424,162 +300,145 @@ public int hashCode() { hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; hash = (53 * hash) + getUnreachableList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 for the `ListDnsAuthorizations` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse) com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsResponse_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse.class, - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse.Builder.class); + com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse.class, com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse.Builder.class); } - // Construct using - // com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse.newBuilder() + // Construct using com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse.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) { - getDnsAuthorizationsFieldBuilder(); - } } - @java.lang.Override public Builder clear() { super.clear(); if (dnsAuthorizationsBuilder_ == null) { dnsAuthorizations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + dnsAuthorizations_ = null; dnsAuthorizationsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -588,16 +447,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_ListDnsAuthorizationsResponse_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse - getDefaultInstanceForType() { - return com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse - .getDefaultInstance(); + public com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse.getDefaultInstance(); } @java.lang.Override @@ -611,8 +468,7 @@ public com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse buil @java.lang.Override public com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse buildPartial() { - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse result = - new com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse(this); + com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse result = new com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse(this); int from_bitField0_ = bitField0_; if (dnsAuthorizationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -637,51 +493,46 @@ public com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse 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.certificatemanager.v1.ListDnsAuthorizationsResponse) { - return mergeFrom( - (com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse other) { - if (other - == com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse other) { + if (other == com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse.getDefaultInstance()) return this; if (dnsAuthorizationsBuilder_ == null) { if (!other.dnsAuthorizations_.isEmpty()) { if (dnsAuthorizations_.isEmpty()) { @@ -700,10 +551,9 @@ public Builder mergeFrom( dnsAuthorizationsBuilder_ = null; dnsAuthorizations_ = other.dnsAuthorizations_; bitField0_ = (bitField0_ & ~0x00000001); - dnsAuthorizationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDnsAuthorizationsFieldBuilder() - : null; + dnsAuthorizationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDnsAuthorizationsFieldBuilder() : null; } else { dnsAuthorizationsBuilder_.addAllMessages(other.dnsAuthorizations_); } @@ -723,7 +573,7 @@ public Builder mergeFrom( } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -738,54 +588,78 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.certificatemanager.v1.DnsAuthorization m = + input.readMessage( + com.google.cloud.certificatemanager.v1.DnsAuthorization.parser(), + extensionRegistry); + if (dnsAuthorizationsBuilder_ == null) { + ensureDnsAuthorizationsIsMutable(); + dnsAuthorizations_.add(m); + } else { + dnsAuthorizationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } - private int bitField0_; - private java.util.List - dnsAuthorizations_ = java.util.Collections.emptyList(); - + private java.util.List dnsAuthorizations_ = + java.util.Collections.emptyList(); private void ensureDnsAuthorizationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - dnsAuthorizations_ = - new java.util.ArrayList( - dnsAuthorizations_); + dnsAuthorizations_ = new java.util.ArrayList(dnsAuthorizations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.certificatemanager.v1.DnsAuthorization, - com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder, - com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder> - dnsAuthorizationsBuilder_; + com.google.cloud.certificatemanager.v1.DnsAuthorization, com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder, com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder> dnsAuthorizationsBuilder_; /** - * - * *
      * A list of dns authorizations for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ - public java.util.List - getDnsAuthorizationsList() { + public java.util.List getDnsAuthorizationsList() { if (dnsAuthorizationsBuilder_ == null) { return java.util.Collections.unmodifiableList(dnsAuthorizations_); } else { @@ -793,14 +667,11 @@ private void ensureDnsAuthorizationsIsMutable() { } } /** - * - * *
      * A list of dns authorizations for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ public int getDnsAuthorizationsCount() { if (dnsAuthorizationsBuilder_ == null) { @@ -810,14 +681,11 @@ public int getDnsAuthorizationsCount() { } } /** - * - * *
      * A list of dns authorizations for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ public com.google.cloud.certificatemanager.v1.DnsAuthorization getDnsAuthorizations(int index) { if (dnsAuthorizationsBuilder_ == null) { @@ -827,14 +695,11 @@ public com.google.cloud.certificatemanager.v1.DnsAuthorization getDnsAuthorizati } } /** - * - * *
      * A list of dns authorizations for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ public Builder setDnsAuthorizations( int index, com.google.cloud.certificatemanager.v1.DnsAuthorization value) { @@ -851,18 +716,14 @@ public Builder setDnsAuthorizations( return this; } /** - * - * *
      * A list of dns authorizations for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ public Builder setDnsAuthorizations( - int index, - com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder builderForValue) { + int index, com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder builderForValue) { if (dnsAuthorizationsBuilder_ == null) { ensureDnsAuthorizationsIsMutable(); dnsAuthorizations_.set(index, builderForValue.build()); @@ -873,17 +734,13 @@ public Builder setDnsAuthorizations( return this; } /** - * - * *
      * A list of dns authorizations for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ - public Builder addDnsAuthorizations( - com.google.cloud.certificatemanager.v1.DnsAuthorization value) { + public Builder addDnsAuthorizations(com.google.cloud.certificatemanager.v1.DnsAuthorization value) { if (dnsAuthorizationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -897,14 +754,11 @@ public Builder addDnsAuthorizations( return this; } /** - * - * *
      * A list of dns authorizations for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ public Builder addDnsAuthorizations( int index, com.google.cloud.certificatemanager.v1.DnsAuthorization value) { @@ -921,14 +775,11 @@ public Builder addDnsAuthorizations( return this; } /** - * - * *
      * A list of dns authorizations for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ public Builder addDnsAuthorizations( com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder builderForValue) { @@ -942,18 +793,14 @@ public Builder addDnsAuthorizations( return this; } /** - * - * *
      * A list of dns authorizations for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ public Builder addDnsAuthorizations( - int index, - com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder builderForValue) { + int index, com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder builderForValue) { if (dnsAuthorizationsBuilder_ == null) { ensureDnsAuthorizationsIsMutable(); dnsAuthorizations_.add(index, builderForValue.build()); @@ -964,21 +811,18 @@ public Builder addDnsAuthorizations( return this; } /** - * - * *
      * A list of dns authorizations for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ public Builder addAllDnsAuthorizations( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (dnsAuthorizationsBuilder_ == null) { ensureDnsAuthorizationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dnsAuthorizations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dnsAuthorizations_); onChanged(); } else { dnsAuthorizationsBuilder_.addAllMessages(values); @@ -986,14 +830,11 @@ public Builder addAllDnsAuthorizations( return this; } /** - * - * *
      * A list of dns authorizations for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ public Builder clearDnsAuthorizations() { if (dnsAuthorizationsBuilder_ == null) { @@ -1006,14 +847,11 @@ public Builder clearDnsAuthorizations() { return this; } /** - * - * *
      * A list of dns authorizations for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ public Builder removeDnsAuthorizations(int index) { if (dnsAuthorizationsBuilder_ == null) { @@ -1026,50 +864,39 @@ public Builder removeDnsAuthorizations(int index) { return this; } /** - * - * *
      * A list of dns authorizations for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ - public com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder - getDnsAuthorizationsBuilder(int index) { + public com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder getDnsAuthorizationsBuilder( + int index) { return getDnsAuthorizationsFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of dns authorizations for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ - public com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder - getDnsAuthorizationsOrBuilder(int index) { + public com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder getDnsAuthorizationsOrBuilder( + int index) { if (dnsAuthorizationsBuilder_ == null) { - return dnsAuthorizations_.get(index); - } else { + return dnsAuthorizations_.get(index); } else { return dnsAuthorizationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of dns authorizations for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ - public java.util.List< - ? extends com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder> - getDnsAuthorizationsOrBuilderList() { + public java.util.List + getDnsAuthorizationsOrBuilderList() { if (dnsAuthorizationsBuilder_ != null) { return dnsAuthorizationsBuilder_.getMessageOrBuilderList(); } else { @@ -1077,62 +904,45 @@ public Builder removeDnsAuthorizations(int index) { } } /** - * - * *
      * A list of dns authorizations for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ - public com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder - addDnsAuthorizationsBuilder() { - return getDnsAuthorizationsFieldBuilder() - .addBuilder(com.google.cloud.certificatemanager.v1.DnsAuthorization.getDefaultInstance()); + public com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder addDnsAuthorizationsBuilder() { + return getDnsAuthorizationsFieldBuilder().addBuilder( + com.google.cloud.certificatemanager.v1.DnsAuthorization.getDefaultInstance()); } /** - * - * *
      * A list of dns authorizations for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ - public com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder - addDnsAuthorizationsBuilder(int index) { - return getDnsAuthorizationsFieldBuilder() - .addBuilder( - index, com.google.cloud.certificatemanager.v1.DnsAuthorization.getDefaultInstance()); + public com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder addDnsAuthorizationsBuilder( + int index) { + return getDnsAuthorizationsFieldBuilder().addBuilder( + index, com.google.cloud.certificatemanager.v1.DnsAuthorization.getDefaultInstance()); } /** - * - * *
      * A list of dns authorizations for the parent resource.
      * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ - public java.util.List - getDnsAuthorizationsBuilderList() { + public java.util.List + getDnsAuthorizationsBuilderList() { return getDnsAuthorizationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.certificatemanager.v1.DnsAuthorization, - com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder, - com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder> + com.google.cloud.certificatemanager.v1.DnsAuthorization, com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder, com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder> getDnsAuthorizationsFieldBuilder() { if (dnsAuthorizationsBuilder_ == null) { - dnsAuthorizationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.certificatemanager.v1.DnsAuthorization, - com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder, - com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder>( + dnsAuthorizationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.certificatemanager.v1.DnsAuthorization, com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder, com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder>( dnsAuthorizations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1144,8 +954,6 @@ public Builder removeDnsAuthorizations(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1153,13 +961,13 @@ public Builder removeDnsAuthorizations(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; @@ -1168,8 +976,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1177,14 +983,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 { @@ -1192,8 +999,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1201,22 +1006,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; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1224,18 +1027,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; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1243,67 +1043,57 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1311,90 +1101,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1404,30 +1184,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1437,32 +1215,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse) - private static final com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse(); } - public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDnsAuthorizationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDnsAuthorizationsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDnsAuthorizationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1474,8 +1261,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsResponseOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsResponseOrBuilder.java similarity index 72% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsResponseOrBuilder.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsResponseOrBuilder.java index 8d9973a6057a..66639dac8aca 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsResponseOrBuilder.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ListDnsAuthorizationsResponseOrBuilder.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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; -public interface ListDnsAuthorizationsResponseOrBuilder - extends +public interface ListDnsAuthorizationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of dns authorizations for the parent resource.
    * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ - java.util.List + java.util.List getDnsAuthorizationsList(); /** - * - * *
    * A list of dns authorizations for the parent resource.
    * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ com.google.cloud.certificatemanager.v1.DnsAuthorization getDnsAuthorizations(int index); /** - * - * *
    * A list of dns authorizations for the parent resource.
    * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ int getDnsAuthorizationsCount(); /** - * - * *
    * A list of dns authorizations for the parent resource.
    * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ - java.util.List + java.util.List getDnsAuthorizationsOrBuilderList(); /** - * - * *
    * A list of dns authorizations for the parent resource.
    * 
* - * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; - * + * repeated .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorizations = 1; */ com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder getDnsAuthorizationsOrBuilder( int index); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -92,13 +59,10 @@ com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder getDnsAuthoriza
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -106,59 +70,49 @@ com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder getDnsAuthoriza
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/LocationName.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/LocationName.java similarity index 100% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/LocationName.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/LocationName.java diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/OperationMetadata.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/OperationMetadata.java similarity index 69% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/OperationMetadata.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/OperationMetadata.java index 855a21f71ff4..0e471945c7d9 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/OperationMetadata.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Represents the metadata of the long-running operation. Output only.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.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.certificatemanager.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,143 +28,37 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private OperationMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - 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 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(); - - 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) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.OperationMetadata.class, - com.google.cloud.certificatemanager.v1.OperationMetadata.Builder.class); + com.google.cloud.certificatemanager.v1.OperationMetadata.class, com.google.cloud.certificatemanager.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -190,14 +66,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -205,8 +78,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time the operation was created.
    * 
@@ -221,14 +92,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -236,14 +104,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -251,8 +116,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time the operation finished running.
    * 
@@ -267,14 +130,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; - * * @return The target. */ @java.lang.Override @@ -283,29 +143,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; - * * @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 { @@ -316,14 +176,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** - * - * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; - * * @return The verb. */ @java.lang.Override @@ -332,29 +189,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; - * * @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 { @@ -365,14 +222,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object statusMessage_; /** - * - * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5; - * * @return The statusMessage. */ @java.lang.Override @@ -381,29 +235,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; } } /** - * - * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5; - * * @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 { @@ -414,17 +268,15 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** - * - * *
    * Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
-   * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-   * corresponding to `Code.CANCELLED`.
+   * have [Operation.error][] value with a
+   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+   * `Code.CANCELLED`.
    * 
* * bool requested_cancellation = 6; - * * @return The requestedCancellation. */ @java.lang.Override @@ -435,14 +287,11 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** - * - * *
    * API version used to start the operation.
    * 
* * string api_version = 7; - * * @return The apiVersion. */ @java.lang.Override @@ -451,29 +300,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; } } /** - * - * *
    * API version used to start the operation.
    * 
* * string api_version = 7; - * * @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 { @@ -482,7 +331,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -494,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -516,7 +365,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, apiVersion_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -526,10 +375,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_); @@ -541,12 +392,13 @@ 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_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -554,28 +406,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.certificatemanager.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.OperationMetadata other = - (com.google.cloud.certificatemanager.v1.OperationMetadata) obj; + com.google.cloud.certificatemanager.v1.OperationMetadata other = (com.google.cloud.certificatemanager.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 (!unknownFields.equals(other.unknownFields)) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -601,152 +459,139 @@ 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(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.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.certificatemanager.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.certificatemanager.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.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.certificatemanager.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.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.certificatemanager.v1.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.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.certificatemanager.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.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.certificatemanager.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.certificatemanager.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.certificatemanager.v1.OperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.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. Output only.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.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.certificatemanager.v1.OperationMetadata) com.google.cloud.certificatemanager.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.OperationMetadata.class, - com.google.cloud.certificatemanager.v1.OperationMetadata.Builder.class); + com.google.cloud.certificatemanager.v1.OperationMetadata.class, com.google.cloud.certificatemanager.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.certificatemanager.v1.OperationMetadata.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -776,9 +621,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -797,8 +642,7 @@ public com.google.cloud.certificatemanager.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.certificatemanager.v1.OperationMetadata buildPartial() { - com.google.cloud.certificatemanager.v1.OperationMetadata result = - new com.google.cloud.certificatemanager.v1.OperationMetadata(this); + com.google.cloud.certificatemanager.v1.OperationMetadata result = new com.google.cloud.certificatemanager.v1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -822,39 +666,38 @@ public com.google.cloud.certificatemanager.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.certificatemanager.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.certificatemanager.v1.OperationMetadata) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -862,8 +705,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.certificatemanager.v1.OperationMetadata other) { - if (other == com.google.cloud.certificatemanager.v1.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.certificatemanager.v1.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -889,7 +731,7 @@ public Builder mergeFrom(com.google.cloud.certificatemanager.v1.OperationMetadat apiVersion_ = other.apiVersion_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -904,64 +746,102 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.OperationMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + target_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + verb_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: { + statusMessage_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: { + requestedCancellation_ = input.readBool(); + + break; + } // case 48 + case 58: { + apiVersion_ = input.readStringRequireUtf8(); + + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } 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_; /** - * - * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @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(); } } /** - * - * *
      * The time the operation was created.
      * 
@@ -982,15 +862,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - 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(); @@ -1001,8 +880,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -1013,7 +890,7 @@ 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; } @@ -1025,8 +902,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -1045,8 +920,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -1054,13 +927,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 1; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time the operation was created.
      * 
@@ -1071,14 +942,11 @@ 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_; } } /** - * - * *
      * The time the operation was created.
      * 
@@ -1086,17 +954,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 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_; @@ -1104,33 +969,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_; /** - * - * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1141,8 +997,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time the operation finished running.
      * 
@@ -1163,15 +1017,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; */ - 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(); @@ -1182,8 +1035,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * The time the operation finished running.
      * 
@@ -1194,7 +1045,7 @@ 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; } @@ -1206,8 +1057,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation finished running.
      * 
@@ -1226,8 +1075,6 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * The time the operation finished running.
      * 
@@ -1235,13 +1082,11 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 2; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time the operation finished running.
      * 
@@ -1252,12 +1097,11 @@ 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_; } } /** - * - * *
      * The time the operation finished running.
      * 
@@ -1265,17 +1109,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_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> 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_; @@ -1283,20 +1124,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; - * * @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; @@ -1305,21 +1144,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; - * * @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 { @@ -1327,61 +1165,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; - * * @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; } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; - * * @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; @@ -1389,20 +1220,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @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; @@ -1411,21 +1240,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @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 { @@ -1433,61 +1261,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @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; } /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @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; @@ -1495,20 +1316,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5; - * * @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; @@ -1517,21 +1336,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5; - * * @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 { @@ -1539,79 +1357,70 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5; - * * @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; } /** - * - * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** - * - * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5; - * * @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_ ; /** - * - * *
      * Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6; - * * @return The requestedCancellation. */ @java.lang.Override @@ -1619,42 +1428,38 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6; - * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; onChanged(); return this; } /** - * - * *
      * Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -1662,20 +1467,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * API version used to start the operation.
      * 
* * string api_version = 7; - * * @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; @@ -1684,21 +1487,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * API version used to start the operation.
      * 
* * string api_version = 7; - * * @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 { @@ -1706,68 +1508,61 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * API version used to start the operation.
      * 
* * string api_version = 7; - * * @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; } /** - * - * *
      * API version used to start the operation.
      * 
* * string api_version = 7; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * API version used to start the operation.
      * 
* * string api_version = 7; - * * @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); } @@ -1777,12 +1572,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.OperationMetadata) private static final com.google.cloud.certificatemanager.v1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.OperationMetadata(); } @@ -1791,16 +1586,27 @@ public static com.google.cloud.certificatemanager.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1815,4 +1621,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.certificatemanager.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/OperationMetadataOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/OperationMetadataOrBuilder.java similarity index 73% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/OperationMetadataOrBuilder.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/OperationMetadataOrBuilder.java index a4039e69a908..3df9c762a399 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/OperationMetadataOrBuilder.java @@ -1,55 +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/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time the operation was created.
    * 
@@ -59,32 +35,24 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time the operation finished running.
    * 
@@ -94,118 +62,96 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
-   * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-   * corresponding to `Code.CANCELLED`.
+   * have [Operation.error][] value with a
+   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+   * `Code.CANCELLED`.
    * 
* * bool requested_cancellation = 6; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * API version used to start the operation.
    * 
* * string api_version = 7; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * API version used to start the operation.
    * 
* * string api_version = 7; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ServingState.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ServingState.java similarity index 66% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ServingState.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ServingState.java index 9037a15167ba..61fbe1dcf3fc 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ServingState.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/ServingState.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Defines set of serving states associated with a resource.
  * 
* * Protobuf enum {@code google.cloud.certificatemanager.v1.ServingState} */ -public enum ServingState implements com.google.protobuf.ProtocolMessageEnum { +public enum ServingState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * The status is undefined.
    * 
@@ -39,8 +21,6 @@ public enum ServingState implements com.google.protobuf.ProtocolMessageEnum { */ SERVING_STATE_UNSPECIFIED(0), /** - * - * *
    * The configuration is serving.
    * 
@@ -49,8 +29,6 @@ public enum ServingState implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(1), /** - * - * *
    * Update is in progress. Some frontends may serve this configuration.
    * 
@@ -62,8 +40,6 @@ public enum ServingState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * The status is undefined.
    * 
@@ -72,8 +48,6 @@ public enum ServingState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SERVING_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * The configuration is serving.
    * 
@@ -82,8 +56,6 @@ public enum ServingState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 1; /** - * - * *
    * Update is in progress. Some frontends may serve this configuration.
    * 
@@ -92,6 +64,7 @@ public enum ServingState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PENDING_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -116,51 +89,49 @@ public static ServingState valueOf(int value) { */ public static ServingState forNumber(int value) { switch (value) { - case 0: - return SERVING_STATE_UNSPECIFIED; - case 1: - return ACTIVE; - case 2: - return PENDING; - default: - return null; + case 0: return SERVING_STATE_UNSPECIFIED; + case 1: return ACTIVE; + case 2: return PENDING; + 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 ServingState findValueByNumber(int number) { - return ServingState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + ServingState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ServingState findValueByNumber(int number) { + return ServingState.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.certificatemanager.v1.CertificateManagerProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.getDescriptor().getEnumTypes().get(0); } private static final ServingState[] VALUES = values(); - public static ServingState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ServingState 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; @@ -176,3 +147,4 @@ private ServingState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.certificatemanager.v1.ServingState) } + diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapEntryRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapEntryRequest.java similarity index 57% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapEntryRequest.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapEntryRequest.java index c89e72744917..e68d4aa139fc 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapEntryRequest.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapEntryRequest.java @@ -1,155 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Request for the `UpdateCertificateMapEntry` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest} */ -public final class UpdateCertificateMapEntryRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateCertificateMapEntryRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest) UpdateCertificateMapEntryRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateCertificateMapEntryRequest.newBuilder() to construct. - private UpdateCertificateMapEntryRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateCertificateMapEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateCertificateMapEntryRequest() {} + private UpdateCertificateMapEntryRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateCertificateMapEntryRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private UpdateCertificateMapEntryRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder subBuilder = null; - if (certificateMapEntry_ != null) { - subBuilder = certificateMapEntry_.toBuilder(); - } - certificateMapEntry_ = - input.readMessage( - com.google.cloud.certificatemanager.v1.CertificateMapEntry.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificateMapEntry_); - certificateMapEntry_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapEntryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapEntryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapEntryRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapEntryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest.class, - com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest.Builder.class); + com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest.class, com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest.Builder.class); } public static final int CERTIFICATE_MAP_ENTRY_FIELD_NUMBER = 1; private com.google.cloud.certificatemanager.v1.CertificateMapEntry certificateMapEntry_; /** - * - * *
    * Required. A definition of the certificate map entry to create map entry.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateMapEntry field is set. */ @java.lang.Override @@ -157,55 +62,39 @@ public boolean hasCertificateMapEntry() { return certificateMapEntry_ != null; } /** - * - * *
    * Required. A definition of the certificate map entry to create map entry.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateMapEntry. */ @java.lang.Override public com.google.cloud.certificatemanager.v1.CertificateMapEntry getCertificateMapEntry() { - return certificateMapEntry_ == null - ? com.google.cloud.certificatemanager.v1.CertificateMapEntry.getDefaultInstance() - : certificateMapEntry_; + return certificateMapEntry_ == null ? com.google.cloud.certificatemanager.v1.CertificateMapEntry.getDefaultInstance() : certificateMapEntry_; } /** - * - * *
    * Required. A definition of the certificate map entry to create map entry.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder - getCertificateMapEntryOrBuilder() { + public com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder getCertificateMapEntryOrBuilder() { return getCertificateMapEntry(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .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 @@ -213,17 +102,13 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .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 @@ -231,16 +116,13 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .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() { @@ -248,7 +130,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,14 +141,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 (certificateMapEntry_ != null) { output.writeMessage(1, getCertificateMapEntry()); } if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -277,12 +159,14 @@ public int getSerializedSize() { size = 0; if (certificateMapEntry_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCertificateMapEntry()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCertificateMapEntry()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -290,23 +174,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.certificatemanager.v1.UpdateCertificateMapEntryRequest)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest other = - (com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest) obj; + com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest other = (com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest) obj; if (hasCertificateMapEntry() != other.hasCertificateMapEntry()) return false; if (hasCertificateMapEntry()) { - if (!getCertificateMapEntry().equals(other.getCertificateMapEntry())) return false; + if (!getCertificateMapEntry() + .equals(other.getCertificateMapEntry())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -325,152 +210,135 @@ public int hashCode() { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `UpdateCertificateMapEntry` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest) com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapEntryRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapEntryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapEntryRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapEntryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest.class, - com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest.Builder - .class); + com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest.class, com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest.Builder.class); } - // Construct using - // com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest.newBuilder() + // Construct using com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -490,22 +358,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapEntryRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapEntryRequest_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest - getDefaultInstanceForType() { - return com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest - .getDefaultInstance(); + public com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest build() { - com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest result = - buildPartial(); + com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -514,8 +379,7 @@ public com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest b @java.lang.Override public com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest buildPartial() { - com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest result = - new com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest(this); + com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest result = new com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest(this); if (certificateMapEntryBuilder_ == null) { result.certificateMapEntry_ = certificateMapEntry_; } else { @@ -534,59 +398,53 @@ public com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest 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.certificatemanager.v1.UpdateCertificateMapEntryRequest) { - return mergeFrom( - (com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest) other); + if (other instanceof com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest) { + return mergeFrom((com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest other) { - if (other - == com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest other) { + if (other == com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest.getDefaultInstance()) return this; if (other.hasCertificateMapEntry()) { mergeCertificateMapEntry(other.getCertificateMapEntry()); } if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -601,79 +459,84 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getCertificateMapEntryFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private com.google.cloud.certificatemanager.v1.CertificateMapEntry certificateMapEntry_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMapEntry, - com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder, - com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder> - certificateMapEntryBuilder_; + com.google.cloud.certificatemanager.v1.CertificateMapEntry, com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder, com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder> certificateMapEntryBuilder_; /** - * - * *
      * Required. A definition of the certificate map entry to create map entry.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateMapEntry field is set. */ public boolean hasCertificateMapEntry() { return certificateMapEntryBuilder_ != null || certificateMapEntry_ != null; } /** - * - * *
      * Required. A definition of the certificate map entry to create map entry.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateMapEntry. */ public com.google.cloud.certificatemanager.v1.CertificateMapEntry getCertificateMapEntry() { if (certificateMapEntryBuilder_ == null) { - return certificateMapEntry_ == null - ? com.google.cloud.certificatemanager.v1.CertificateMapEntry.getDefaultInstance() - : certificateMapEntry_; + return certificateMapEntry_ == null ? com.google.cloud.certificatemanager.v1.CertificateMapEntry.getDefaultInstance() : certificateMapEntry_; } else { return certificateMapEntryBuilder_.getMessage(); } } /** - * - * *
      * Required. A definition of the certificate map entry to create map entry.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCertificateMapEntry( - com.google.cloud.certificatemanager.v1.CertificateMapEntry value) { + public Builder setCertificateMapEntry(com.google.cloud.certificatemanager.v1.CertificateMapEntry value) { if (certificateMapEntryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -687,15 +550,11 @@ public Builder setCertificateMapEntry( return this; } /** - * - * *
      * Required. A definition of the certificate map entry to create map entry.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificateMapEntry( com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder builderForValue) { @@ -709,25 +568,17 @@ public Builder setCertificateMapEntry( return this; } /** - * - * *
      * Required. A definition of the certificate map entry to create map entry.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeCertificateMapEntry( - com.google.cloud.certificatemanager.v1.CertificateMapEntry value) { + public Builder mergeCertificateMapEntry(com.google.cloud.certificatemanager.v1.CertificateMapEntry value) { if (certificateMapEntryBuilder_ == null) { if (certificateMapEntry_ != null) { certificateMapEntry_ = - com.google.cloud.certificatemanager.v1.CertificateMapEntry.newBuilder( - certificateMapEntry_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.certificatemanager.v1.CertificateMapEntry.newBuilder(certificateMapEntry_).mergeFrom(value).buildPartial(); } else { certificateMapEntry_ = value; } @@ -739,15 +590,11 @@ public Builder mergeCertificateMapEntry( return this; } /** - * - * *
      * Required. A definition of the certificate map entry to create map entry.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCertificateMapEntry() { if (certificateMapEntryBuilder_ == null) { @@ -761,66 +608,48 @@ public Builder clearCertificateMapEntry() { return this; } /** - * - * *
      * Required. A definition of the certificate map entry to create map entry.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder - getCertificateMapEntryBuilder() { - + public com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder getCertificateMapEntryBuilder() { + onChanged(); return getCertificateMapEntryFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A definition of the certificate map entry to create map entry.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder - getCertificateMapEntryOrBuilder() { + public com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder getCertificateMapEntryOrBuilder() { if (certificateMapEntryBuilder_ != null) { return certificateMapEntryBuilder_.getMessageOrBuilder(); } else { - return certificateMapEntry_ == null - ? com.google.cloud.certificatemanager.v1.CertificateMapEntry.getDefaultInstance() - : certificateMapEntry_; + return certificateMapEntry_ == null ? + com.google.cloud.certificatemanager.v1.CertificateMapEntry.getDefaultInstance() : certificateMapEntry_; } } /** - * - * *
      * Required. A definition of the certificate map entry to create map entry.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMapEntry, - com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder, - com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder> + com.google.cloud.certificatemanager.v1.CertificateMapEntry, com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder, com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder> getCertificateMapEntryFieldBuilder() { if (certificateMapEntryBuilder_ == null) { - certificateMapEntryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMapEntry, - com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder, - com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder>( - getCertificateMapEntry(), getParentForChildren(), isClean()); + certificateMapEntryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateMapEntry, com.google.cloud.certificatemanager.v1.CertificateMapEntry.Builder, com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder>( + getCertificateMapEntry(), + getParentForChildren(), + isClean()); certificateMapEntry_ = null; } return certificateMapEntryBuilder_; @@ -828,61 +657,45 @@ public Builder clearCertificateMapEntry() { 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. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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) { @@ -898,18 +711,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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(); @@ -920,22 +731,19 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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; } @@ -947,16 +755,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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) { @@ -970,74 +775,61 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1047,33 +839,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest) - private static final com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest(); + DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest(); } - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCertificateMapEntryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCertificateMapEntryRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCertificateMapEntryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1085,8 +885,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapEntryRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapEntryRequestOrBuilder.java similarity index 57% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapEntryRequestOrBuilder.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapEntryRequestOrBuilder.java index 8276f48b7a18..302bacef6a1d 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapEntryRequestOrBuilder.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapEntryRequestOrBuilder.java @@ -1,111 +1,69 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; -public interface UpdateCertificateMapEntryRequestOrBuilder - extends +public interface UpdateCertificateMapEntryRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. A definition of the certificate map entry to create map entry.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateMapEntry field is set. */ boolean hasCertificateMapEntry(); /** - * - * *
    * Required. A definition of the certificate map entry to create map entry.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateMapEntry. */ com.google.cloud.certificatemanager.v1.CertificateMapEntry getCertificateMapEntry(); /** - * - * *
    * Required. A definition of the certificate map entry to create map entry.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMapEntry certificate_map_entry = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder - getCertificateMapEntryOrBuilder(); + com.google.cloud.certificatemanager.v1.CertificateMapEntryOrBuilder getCertificateMapEntryOrBuilder(); /** - * - * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapRequest.java similarity index 58% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapRequest.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapRequest.java index 5ef368587279..d5f9d2d713b2 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapRequest.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapRequest.java @@ -1,154 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Request for the `UpdateCertificateMap` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.UpdateCertificateMapRequest} */ -public final class UpdateCertificateMapRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateCertificateMapRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.UpdateCertificateMapRequest) UpdateCertificateMapRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateCertificateMapRequest.newBuilder() to construct. private UpdateCertificateMapRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateCertificateMapRequest() {} + private UpdateCertificateMapRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateCertificateMapRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private UpdateCertificateMapRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.certificatemanager.v1.CertificateMap.Builder subBuilder = null; - if (certificateMap_ != null) { - subBuilder = certificateMap_.toBuilder(); - } - certificateMap_ = - input.readMessage( - com.google.cloud.certificatemanager.v1.CertificateMap.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(certificateMap_); - certificateMap_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest.class, - com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest.Builder.class); + com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest.class, com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest.Builder.class); } public static final int CERTIFICATE_MAP_FIELD_NUMBER = 1; private com.google.cloud.certificatemanager.v1.CertificateMap certificateMap_; /** - * - * *
    * Required. A definition of the certificate map to update.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateMap field is set. */ @java.lang.Override @@ -156,55 +62,39 @@ public boolean hasCertificateMap() { return certificateMap_ != null; } /** - * - * *
    * Required. A definition of the certificate map to update.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateMap. */ @java.lang.Override public com.google.cloud.certificatemanager.v1.CertificateMap getCertificateMap() { - return certificateMap_ == null - ? com.google.cloud.certificatemanager.v1.CertificateMap.getDefaultInstance() - : certificateMap_; + return certificateMap_ == null ? com.google.cloud.certificatemanager.v1.CertificateMap.getDefaultInstance() : certificateMap_; } /** - * - * *
    * Required. A definition of the certificate map to update.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder - getCertificateMapOrBuilder() { + public com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder getCertificateMapOrBuilder() { return getCertificateMap(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .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 @@ -212,17 +102,13 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .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 @@ -230,16 +116,13 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .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() { @@ -247,7 +130,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,14 +141,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 (certificateMap_ != null) { output.writeMessage(1, getCertificateMap()); } if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -276,12 +159,14 @@ public int getSerializedSize() { size = 0; if (certificateMap_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCertificateMap()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCertificateMap()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -289,23 +174,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.certificatemanager.v1.UpdateCertificateMapRequest)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest other = - (com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest) obj; + com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest other = (com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest) obj; if (hasCertificateMap() != other.hasCertificateMap()) return false; if (hasCertificateMap()) { - if (!getCertificateMap().equals(other.getCertificateMap())) return false; + if (!getCertificateMap() + .equals(other.getCertificateMap())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,151 +210,135 @@ public int hashCode() { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `UpdateCertificateMap` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.UpdateCertificateMapRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.UpdateCertificateMapRequest) com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest.class, - com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest.Builder.class); + com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest.class, com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest.Builder.class); } - // Construct using - // com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest.newBuilder() + // Construct using com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -488,16 +358,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_UpdateCertificateMapRequest_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest - getDefaultInstanceForType() { - return com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest - .getDefaultInstance(); + public com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest.getDefaultInstance(); } @java.lang.Override @@ -511,8 +379,7 @@ public com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest build( @java.lang.Override public com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest buildPartial() { - com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest result = - new com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest(this); + com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest result = new com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest(this); if (certificateMapBuilder_ == null) { result.certificateMap_ = certificateMap_; } else { @@ -531,58 +398,53 @@ public com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest 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.certificatemanager.v1.UpdateCertificateMapRequest) { - return mergeFrom( - (com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest other) { - if (other - == com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest other) { + if (other == com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest.getDefaultInstance()) return this; if (other.hasCertificateMap()) { mergeCertificateMap(other.getCertificateMap()); } if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -597,76 +459,82 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getCertificateMapFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private com.google.cloud.certificatemanager.v1.CertificateMap certificateMap_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMap, - com.google.cloud.certificatemanager.v1.CertificateMap.Builder, - com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder> - certificateMapBuilder_; + com.google.cloud.certificatemanager.v1.CertificateMap, com.google.cloud.certificatemanager.v1.CertificateMap.Builder, com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder> certificateMapBuilder_; /** - * - * *
      * Required. A definition of the certificate map to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateMap field is set. */ public boolean hasCertificateMap() { return certificateMapBuilder_ != null || certificateMap_ != null; } /** - * - * *
      * Required. A definition of the certificate map to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateMap. */ public com.google.cloud.certificatemanager.v1.CertificateMap getCertificateMap() { if (certificateMapBuilder_ == null) { - return certificateMap_ == null - ? com.google.cloud.certificatemanager.v1.CertificateMap.getDefaultInstance() - : certificateMap_; + return certificateMap_ == null ? com.google.cloud.certificatemanager.v1.CertificateMap.getDefaultInstance() : certificateMap_; } else { return certificateMapBuilder_.getMessage(); } } /** - * - * *
      * Required. A definition of the certificate map to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificateMap(com.google.cloud.certificatemanager.v1.CertificateMap value) { if (certificateMapBuilder_ == null) { @@ -682,15 +550,11 @@ public Builder setCertificateMap(com.google.cloud.certificatemanager.v1.Certific return this; } /** - * - * *
      * Required. A definition of the certificate map to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificateMap( com.google.cloud.certificatemanager.v1.CertificateMap.Builder builderForValue) { @@ -704,24 +568,17 @@ public Builder setCertificateMap( return this; } /** - * - * *
      * Required. A definition of the certificate map to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeCertificateMap( - com.google.cloud.certificatemanager.v1.CertificateMap value) { + public Builder mergeCertificateMap(com.google.cloud.certificatemanager.v1.CertificateMap value) { if (certificateMapBuilder_ == null) { if (certificateMap_ != null) { certificateMap_ = - com.google.cloud.certificatemanager.v1.CertificateMap.newBuilder(certificateMap_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.certificatemanager.v1.CertificateMap.newBuilder(certificateMap_).mergeFrom(value).buildPartial(); } else { certificateMap_ = value; } @@ -733,15 +590,11 @@ public Builder mergeCertificateMap( return this; } /** - * - * *
      * Required. A definition of the certificate map to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCertificateMap() { if (certificateMapBuilder_ == null) { @@ -755,66 +608,48 @@ public Builder clearCertificateMap() { return this; } /** - * - * *
      * Required. A definition of the certificate map to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.certificatemanager.v1.CertificateMap.Builder - getCertificateMapBuilder() { - + public com.google.cloud.certificatemanager.v1.CertificateMap.Builder getCertificateMapBuilder() { + onChanged(); return getCertificateMapFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A definition of the certificate map to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder - getCertificateMapOrBuilder() { + public com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder getCertificateMapOrBuilder() { if (certificateMapBuilder_ != null) { return certificateMapBuilder_.getMessageOrBuilder(); } else { - return certificateMap_ == null - ? com.google.cloud.certificatemanager.v1.CertificateMap.getDefaultInstance() - : certificateMap_; + return certificateMap_ == null ? + com.google.cloud.certificatemanager.v1.CertificateMap.getDefaultInstance() : certificateMap_; } } /** - * - * *
      * Required. A definition of the certificate map to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMap, - com.google.cloud.certificatemanager.v1.CertificateMap.Builder, - com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder> + com.google.cloud.certificatemanager.v1.CertificateMap, com.google.cloud.certificatemanager.v1.CertificateMap.Builder, com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder> getCertificateMapFieldBuilder() { if (certificateMapBuilder_ == null) { - certificateMapBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.CertificateMap, - com.google.cloud.certificatemanager.v1.CertificateMap.Builder, - com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder>( - getCertificateMap(), getParentForChildren(), isClean()); + certificateMapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.CertificateMap, com.google.cloud.certificatemanager.v1.CertificateMap.Builder, com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder>( + getCertificateMap(), + getParentForChildren(), + isClean()); certificateMap_ = null; } return certificateMapBuilder_; @@ -822,61 +657,45 @@ public Builder clearCertificateMap() { 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. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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) { @@ -892,18 +711,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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(); @@ -914,22 +731,19 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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; } @@ -941,16 +755,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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) { @@ -964,74 +775,61 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1041,32 +839,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.UpdateCertificateMapRequest) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.UpdateCertificateMapRequest) - private static final com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest(); } - public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCertificateMapRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCertificateMapRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCertificateMapRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1078,8 +885,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapRequestOrBuilder.java similarity index 57% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapRequestOrBuilder.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapRequestOrBuilder.java index afd435e3c724..79d5d8e810f9 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapRequestOrBuilder.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateMapRequestOrBuilder.java @@ -1,110 +1,69 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; -public interface UpdateCertificateMapRequestOrBuilder - extends +public interface UpdateCertificateMapRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.UpdateCertificateMapRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. A definition of the certificate map to update.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificateMap field is set. */ boolean hasCertificateMap(); /** - * - * *
    * Required. A definition of the certificate map to update.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificateMap. */ com.google.cloud.certificatemanager.v1.CertificateMap getCertificateMap(); /** - * - * *
    * Required. A definition of the certificate map to update.
    * 
* - * - * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.CertificateMap certificate_map = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.certificatemanager.v1.CertificateMapOrBuilder getCertificateMapOrBuilder(); /** - * - * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateRequest.java similarity index 59% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateRequest.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateRequest.java index ec066dc3ff6d..528337d9da9a 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateRequest.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateRequest.java @@ -1,154 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Request for the `UpdateCertificate` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.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.certificatemanager.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() {} + private UpdateCertificateRequest() { + } @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) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.certificatemanager.v1.Certificate.Builder subBuilder = null; - if (certificate_ != null) { - subBuilder = certificate_.toBuilder(); - } - certificate_ = - input.readMessage( - com.google.cloud.certificatemanager.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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_UpdateCertificateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_UpdateCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_UpdateCertificateRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_UpdateCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.UpdateCertificateRequest.class, - com.google.cloud.certificatemanager.v1.UpdateCertificateRequest.Builder.class); + com.google.cloud.certificatemanager.v1.UpdateCertificateRequest.class, com.google.cloud.certificatemanager.v1.UpdateCertificateRequest.Builder.class); } public static final int CERTIFICATE_FIELD_NUMBER = 1; private com.google.cloud.certificatemanager.v1.Certificate certificate_; /** - * - * *
    * Required. A definition of the certificate to update.
    * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificate field is set. */ @java.lang.Override @@ -156,34 +62,23 @@ public boolean hasCertificate() { return certificate_ != null; } /** - * - * *
    * Required. A definition of the certificate to update.
    * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificate. */ @java.lang.Override public com.google.cloud.certificatemanager.v1.Certificate getCertificate() { - return certificate_ == null - ? com.google.cloud.certificatemanager.v1.Certificate.getDefaultInstance() - : certificate_; + return certificate_ == null ? com.google.cloud.certificatemanager.v1.Certificate.getDefaultInstance() : certificate_; } /** - * - * *
    * Required. A definition of the certificate to update.
    * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.certificatemanager.v1.CertificateOrBuilder getCertificateOrBuilder() { @@ -193,17 +88,13 @@ public com.google.cloud.certificatemanager.v1.CertificateOrBuilder getCertificat public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .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 @@ -211,17 +102,13 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .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 @@ -229,16 +116,13 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .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() { @@ -246,7 +130,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -258,14 +141,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 (certificate_ != null) { output.writeMessage(1, getCertificate()); } if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -275,12 +159,14 @@ 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()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -288,23 +174,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.certificatemanager.v1.UpdateCertificateRequest)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.UpdateCertificateRequest other = - (com.google.cloud.certificatemanager.v1.UpdateCertificateRequest) obj; + com.google.cloud.certificatemanager.v1.UpdateCertificateRequest other = (com.google.cloud.certificatemanager.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 (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -323,149 +210,135 @@ public int hashCode() { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.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.certificatemanager.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.certificatemanager.v1.UpdateCertificateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.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.certificatemanager.v1.UpdateCertificateRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.UpdateCertificateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.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.certificatemanager.v1.UpdateCertificateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.UpdateCertificateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.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.certificatemanager.v1.UpdateCertificateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.UpdateCertificateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.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.certificatemanager.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.certificatemanager.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.certificatemanager.v1.UpdateCertificateRequest prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.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 for the `UpdateCertificate` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.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.certificatemanager.v1.UpdateCertificateRequest) com.google.cloud.certificatemanager.v1.UpdateCertificateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_UpdateCertificateRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_UpdateCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_UpdateCertificateRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_UpdateCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.UpdateCertificateRequest.class, - com.google.cloud.certificatemanager.v1.UpdateCertificateRequest.Builder.class); + com.google.cloud.certificatemanager.v1.UpdateCertificateRequest.class, com.google.cloud.certificatemanager.v1.UpdateCertificateRequest.Builder.class); } // Construct using com.google.cloud.certificatemanager.v1.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -485,14 +358,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_UpdateCertificateRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_UpdateCertificateRequest_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.UpdateCertificateRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.UpdateCertificateRequest getDefaultInstanceForType() { return com.google.cloud.certificatemanager.v1.UpdateCertificateRequest.getDefaultInstance(); } @@ -507,8 +379,7 @@ public com.google.cloud.certificatemanager.v1.UpdateCertificateRequest build() { @java.lang.Override public com.google.cloud.certificatemanager.v1.UpdateCertificateRequest buildPartial() { - com.google.cloud.certificatemanager.v1.UpdateCertificateRequest result = - new com.google.cloud.certificatemanager.v1.UpdateCertificateRequest(this); + com.google.cloud.certificatemanager.v1.UpdateCertificateRequest result = new com.google.cloud.certificatemanager.v1.UpdateCertificateRequest(this); if (certificateBuilder_ == null) { result.certificate_ = certificate_; } else { @@ -527,57 +398,53 @@ public com.google.cloud.certificatemanager.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.certificatemanager.v1.UpdateCertificateRequest) { - return mergeFrom((com.google.cloud.certificatemanager.v1.UpdateCertificateRequest) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.UpdateCertificateRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.UpdateCertificateRequest other) { - if (other - == com.google.cloud.certificatemanager.v1.UpdateCertificateRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.UpdateCertificateRequest other) { + if (other == com.google.cloud.certificatemanager.v1.UpdateCertificateRequest.getDefaultInstance()) return this; if (other.hasCertificate()) { mergeCertificate(other.getCertificate()); } if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -592,76 +459,82 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.UpdateCertificateRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getCertificateFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.UpdateCertificateRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private com.google.cloud.certificatemanager.v1.Certificate certificate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.Certificate, - com.google.cloud.certificatemanager.v1.Certificate.Builder, - com.google.cloud.certificatemanager.v1.CertificateOrBuilder> - certificateBuilder_; + com.google.cloud.certificatemanager.v1.Certificate, com.google.cloud.certificatemanager.v1.Certificate.Builder, com.google.cloud.certificatemanager.v1.CertificateOrBuilder> certificateBuilder_; /** - * - * *
      * Required. A definition of the certificate to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.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. A definition of the certificate to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificate. */ public com.google.cloud.certificatemanager.v1.Certificate getCertificate() { if (certificateBuilder_ == null) { - return certificate_ == null - ? com.google.cloud.certificatemanager.v1.Certificate.getDefaultInstance() - : certificate_; + return certificate_ == null ? com.google.cloud.certificatemanager.v1.Certificate.getDefaultInstance() : certificate_; } else { return certificateBuilder_.getMessage(); } } /** - * - * *
      * Required. A definition of the certificate to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificate(com.google.cloud.certificatemanager.v1.Certificate value) { if (certificateBuilder_ == null) { @@ -677,15 +550,11 @@ public Builder setCertificate(com.google.cloud.certificatemanager.v1.Certificate return this; } /** - * - * *
      * Required. A definition of the certificate to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCertificate( com.google.cloud.certificatemanager.v1.Certificate.Builder builderForValue) { @@ -699,23 +568,17 @@ public Builder setCertificate( return this; } /** - * - * *
      * Required. A definition of the certificate to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCertificate(com.google.cloud.certificatemanager.v1.Certificate value) { if (certificateBuilder_ == null) { if (certificate_ != null) { certificate_ = - com.google.cloud.certificatemanager.v1.Certificate.newBuilder(certificate_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.certificatemanager.v1.Certificate.newBuilder(certificate_).mergeFrom(value).buildPartial(); } else { certificate_ = value; } @@ -727,15 +590,11 @@ public Builder mergeCertificate(com.google.cloud.certificatemanager.v1.Certifica return this; } /** - * - * *
      * Required. A definition of the certificate to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCertificate() { if (certificateBuilder_ == null) { @@ -749,64 +608,48 @@ public Builder clearCertificate() { return this; } /** - * - * *
      * Required. A definition of the certificate to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.certificatemanager.v1.Certificate.Builder getCertificateBuilder() { - + onChanged(); return getCertificateFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A definition of the certificate to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.certificatemanager.v1.CertificateOrBuilder getCertificateOrBuilder() { if (certificateBuilder_ != null) { return certificateBuilder_.getMessageOrBuilder(); } else { - return certificate_ == null - ? com.google.cloud.certificatemanager.v1.Certificate.getDefaultInstance() - : certificate_; + return certificate_ == null ? + com.google.cloud.certificatemanager.v1.Certificate.getDefaultInstance() : certificate_; } } /** - * - * *
      * Required. A definition of the certificate to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.Certificate, - com.google.cloud.certificatemanager.v1.Certificate.Builder, - com.google.cloud.certificatemanager.v1.CertificateOrBuilder> + com.google.cloud.certificatemanager.v1.Certificate, com.google.cloud.certificatemanager.v1.Certificate.Builder, com.google.cloud.certificatemanager.v1.CertificateOrBuilder> getCertificateFieldBuilder() { if (certificateBuilder_ == null) { - certificateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.Certificate, - com.google.cloud.certificatemanager.v1.Certificate.Builder, - com.google.cloud.certificatemanager.v1.CertificateOrBuilder>( - getCertificate(), getParentForChildren(), isClean()); + certificateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.Certificate, com.google.cloud.certificatemanager.v1.Certificate.Builder, com.google.cloud.certificatemanager.v1.CertificateOrBuilder>( + getCertificate(), + getParentForChildren(), + isClean()); certificate_ = null; } return certificateBuilder_; @@ -814,61 +657,45 @@ public com.google.cloud.certificatemanager.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. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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) { @@ -884,18 +711,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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(); @@ -906,22 +731,19 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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; } @@ -933,16 +755,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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) { @@ -956,74 +775,61 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1033,32 +839,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.UpdateCertificateRequest) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.UpdateCertificateRequest) - private static final com.google.cloud.certificatemanager.v1.UpdateCertificateRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.UpdateCertificateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.UpdateCertificateRequest(); } - public static com.google.cloud.certificatemanager.v1.UpdateCertificateRequest - getDefaultInstance() { + public static com.google.cloud.certificatemanager.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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1070,8 +885,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.certificatemanager.v1.UpdateCertificateRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.UpdateCertificateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateRequestOrBuilder.java similarity index 57% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateRequestOrBuilder.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateRequestOrBuilder.java index 40983ec9b9e9..a0ef7e8e5167 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateRequestOrBuilder.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateCertificateRequestOrBuilder.java @@ -1,110 +1,69 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; -public interface UpdateCertificateRequestOrBuilder - extends +public interface UpdateCertificateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.UpdateCertificateRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. A definition of the certificate to update.
    * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the certificate field is set. */ boolean hasCertificate(); /** - * - * *
    * Required. A definition of the certificate to update.
    * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The certificate. */ com.google.cloud.certificatemanager.v1.Certificate getCertificate(); /** - * - * *
    * Required. A definition of the certificate to update.
    * 
* - * - * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.Certificate certificate = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.certificatemanager.v1.CertificateOrBuilder getCertificateOrBuilder(); /** - * - * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateDnsAuthorizationRequest.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateDnsAuthorizationRequest.java similarity index 57% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateDnsAuthorizationRequest.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateDnsAuthorizationRequest.java index 67cee5d6f4cc..b1e98e715be3 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateDnsAuthorizationRequest.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateDnsAuthorizationRequest.java @@ -1,154 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; /** - * - * *
  * Request for the `UpdateDnsAuthorization` method.
  * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest} */ -public final class UpdateDnsAuthorizationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateDnsAuthorizationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest) UpdateDnsAuthorizationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateDnsAuthorizationRequest.newBuilder() to construct. private UpdateDnsAuthorizationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateDnsAuthorizationRequest() {} + private UpdateDnsAuthorizationRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateDnsAuthorizationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - private UpdateDnsAuthorizationRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder subBuilder = null; - if (dnsAuthorization_ != null) { - subBuilder = dnsAuthorization_.toBuilder(); - } - dnsAuthorization_ = - input.readMessage( - com.google.cloud.certificatemanager.v1.DnsAuthorization.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dnsAuthorization_); - dnsAuthorization_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_UpdateDnsAuthorizationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_UpdateDnsAuthorizationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_UpdateDnsAuthorizationRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_UpdateDnsAuthorizationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest.class, - com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest.Builder.class); + com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest.class, com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest.Builder.class); } public static final int DNS_AUTHORIZATION_FIELD_NUMBER = 1; private com.google.cloud.certificatemanager.v1.DnsAuthorization dnsAuthorization_; /** - * - * *
    * Required. A definition of the dns authorization to update.
    * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dnsAuthorization field is set. */ @java.lang.Override @@ -156,55 +62,39 @@ public boolean hasDnsAuthorization() { return dnsAuthorization_ != null; } /** - * - * *
    * Required. A definition of the dns authorization to update.
    * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The dnsAuthorization. */ @java.lang.Override public com.google.cloud.certificatemanager.v1.DnsAuthorization getDnsAuthorization() { - return dnsAuthorization_ == null - ? com.google.cloud.certificatemanager.v1.DnsAuthorization.getDefaultInstance() - : dnsAuthorization_; + return dnsAuthorization_ == null ? com.google.cloud.certificatemanager.v1.DnsAuthorization.getDefaultInstance() : dnsAuthorization_; } /** - * - * *
    * Required. A definition of the dns authorization to update.
    * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder - getDnsAuthorizationOrBuilder() { + public com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder getDnsAuthorizationOrBuilder() { return getDnsAuthorization(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .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 @@ -212,17 +102,13 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .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 @@ -230,16 +116,13 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .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() { @@ -247,7 +130,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,14 +141,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 (dnsAuthorization_ != null) { output.writeMessage(1, getDnsAuthorization()); } if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -276,12 +159,14 @@ public int getSerializedSize() { size = 0; if (dnsAuthorization_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDnsAuthorization()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDnsAuthorization()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -289,23 +174,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.certificatemanager.v1.UpdateDnsAuthorizationRequest)) { return super.equals(obj); } - com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest other = - (com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest) obj; + com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest other = (com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest) obj; if (hasDnsAuthorization() != other.hasDnsAuthorization()) return false; if (hasDnsAuthorization()) { - if (!getDnsAuthorization().equals(other.getDnsAuthorization())) return false; + if (!getDnsAuthorization() + .equals(other.getDnsAuthorization())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,151 +210,135 @@ public int hashCode() { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest prototype) { + public static Builder newBuilder(com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `UpdateDnsAuthorization` method.
    * 
* * Protobuf type {@code google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest) com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_UpdateDnsAuthorizationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_UpdateDnsAuthorizationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_UpdateDnsAuthorizationRequest_fieldAccessorTable + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_UpdateDnsAuthorizationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest.class, - com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest.Builder.class); + com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest.class, com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest.Builder.class); } - // Construct using - // com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest.newBuilder() + // Construct using com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest.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) {} } - @java.lang.Override public Builder clear() { super.clear(); @@ -488,16 +358,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.certificatemanager.v1.CertificateManagerProto - .internal_static_google_cloud_certificatemanager_v1_UpdateDnsAuthorizationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.certificatemanager.v1.CertificateManagerProto.internal_static_google_cloud_certificatemanager_v1_UpdateDnsAuthorizationRequest_descriptor; } @java.lang.Override - public com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest - getDefaultInstanceForType() { - return com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest - .getDefaultInstance(); + public com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest getDefaultInstanceForType() { + return com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest.getDefaultInstance(); } @java.lang.Override @@ -511,8 +379,7 @@ public com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest buil @java.lang.Override public com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest buildPartial() { - com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest result = - new com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest(this); + com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest result = new com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest(this); if (dnsAuthorizationBuilder_ == null) { result.dnsAuthorization_ = dnsAuthorization_; } else { @@ -531,58 +398,53 @@ public com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest 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.certificatemanager.v1.UpdateDnsAuthorizationRequest) { - return mergeFrom( - (com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest) other); + return mergeFrom((com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest other) { - if (other - == com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest other) { + if (other == com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest.getDefaultInstance()) return this; if (other.hasDnsAuthorization()) { mergeDnsAuthorization(other.getDnsAuthorization()); } if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -597,79 +459,84 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + input.readMessage( + getDnsAuthorizationFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private com.google.cloud.certificatemanager.v1.DnsAuthorization dnsAuthorization_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.DnsAuthorization, - com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder, - com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder> - dnsAuthorizationBuilder_; + com.google.cloud.certificatemanager.v1.DnsAuthorization, com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder, com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder> dnsAuthorizationBuilder_; /** - * - * *
      * Required. A definition of the dns authorization to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dnsAuthorization field is set. */ public boolean hasDnsAuthorization() { return dnsAuthorizationBuilder_ != null || dnsAuthorization_ != null; } /** - * - * *
      * Required. A definition of the dns authorization to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The dnsAuthorization. */ public com.google.cloud.certificatemanager.v1.DnsAuthorization getDnsAuthorization() { if (dnsAuthorizationBuilder_ == null) { - return dnsAuthorization_ == null - ? com.google.cloud.certificatemanager.v1.DnsAuthorization.getDefaultInstance() - : dnsAuthorization_; + return dnsAuthorization_ == null ? com.google.cloud.certificatemanager.v1.DnsAuthorization.getDefaultInstance() : dnsAuthorization_; } else { return dnsAuthorizationBuilder_.getMessage(); } } /** - * - * *
      * Required. A definition of the dns authorization to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setDnsAuthorization( - com.google.cloud.certificatemanager.v1.DnsAuthorization value) { + public Builder setDnsAuthorization(com.google.cloud.certificatemanager.v1.DnsAuthorization value) { if (dnsAuthorizationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -683,15 +550,11 @@ public Builder setDnsAuthorization( return this; } /** - * - * *
      * Required. A definition of the dns authorization to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDnsAuthorization( com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder builderForValue) { @@ -705,24 +568,17 @@ public Builder setDnsAuthorization( return this; } /** - * - * *
      * Required. A definition of the dns authorization to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeDnsAuthorization( - com.google.cloud.certificatemanager.v1.DnsAuthorization value) { + public Builder mergeDnsAuthorization(com.google.cloud.certificatemanager.v1.DnsAuthorization value) { if (dnsAuthorizationBuilder_ == null) { if (dnsAuthorization_ != null) { dnsAuthorization_ = - com.google.cloud.certificatemanager.v1.DnsAuthorization.newBuilder(dnsAuthorization_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.certificatemanager.v1.DnsAuthorization.newBuilder(dnsAuthorization_).mergeFrom(value).buildPartial(); } else { dnsAuthorization_ = value; } @@ -734,15 +590,11 @@ public Builder mergeDnsAuthorization( return this; } /** - * - * *
      * Required. A definition of the dns authorization to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDnsAuthorization() { if (dnsAuthorizationBuilder_ == null) { @@ -756,66 +608,48 @@ public Builder clearDnsAuthorization() { return this; } /** - * - * *
      * Required. A definition of the dns authorization to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder - getDnsAuthorizationBuilder() { - + public com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder getDnsAuthorizationBuilder() { + onChanged(); return getDnsAuthorizationFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A definition of the dns authorization to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder - getDnsAuthorizationOrBuilder() { + public com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder getDnsAuthorizationOrBuilder() { if (dnsAuthorizationBuilder_ != null) { return dnsAuthorizationBuilder_.getMessageOrBuilder(); } else { - return dnsAuthorization_ == null - ? com.google.cloud.certificatemanager.v1.DnsAuthorization.getDefaultInstance() - : dnsAuthorization_; + return dnsAuthorization_ == null ? + com.google.cloud.certificatemanager.v1.DnsAuthorization.getDefaultInstance() : dnsAuthorization_; } } /** - * - * *
      * Required. A definition of the dns authorization to update.
      * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.DnsAuthorization, - com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder, - com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder> + com.google.cloud.certificatemanager.v1.DnsAuthorization, com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder, com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder> getDnsAuthorizationFieldBuilder() { if (dnsAuthorizationBuilder_ == null) { - dnsAuthorizationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.certificatemanager.v1.DnsAuthorization, - com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder, - com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder>( - getDnsAuthorization(), getParentForChildren(), isClean()); + dnsAuthorizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.certificatemanager.v1.DnsAuthorization, com.google.cloud.certificatemanager.v1.DnsAuthorization.Builder, com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder>( + getDnsAuthorization(), + getParentForChildren(), + isClean()); dnsAuthorization_ = null; } return dnsAuthorizationBuilder_; @@ -823,61 +657,45 @@ public Builder clearDnsAuthorization() { 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. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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) { @@ -893,18 +711,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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(); @@ -915,22 +731,19 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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; } @@ -942,16 +755,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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) { @@ -965,74 +775,61 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
-     * Required. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-     * see
+     * Required. The update mask applies to the resource. For the `FieldMask`
+     * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1042,32 +839,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest) - private static final com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest(); } - public static com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest - getDefaultInstance() { + public static com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateDnsAuthorizationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateDnsAuthorizationRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDnsAuthorizationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1079,8 +885,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest - getDefaultInstanceForType() { + public com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateDnsAuthorizationRequestOrBuilder.java b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateDnsAuthorizationRequestOrBuilder.java similarity index 58% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateDnsAuthorizationRequestOrBuilder.java rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateDnsAuthorizationRequestOrBuilder.java index 7a82c9b44db4..076740088c69 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateDnsAuthorizationRequestOrBuilder.java +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/UpdateDnsAuthorizationRequestOrBuilder.java @@ -1,110 +1,69 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/certificatemanager/v1/certificate_manager.proto package com.google.cloud.certificatemanager.v1; -public interface UpdateDnsAuthorizationRequestOrBuilder - extends +public interface UpdateDnsAuthorizationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. A definition of the dns authorization to update.
    * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dnsAuthorization field is set. */ boolean hasDnsAuthorization(); /** - * - * *
    * Required. A definition of the dns authorization to update.
    * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The dnsAuthorization. */ com.google.cloud.certificatemanager.v1.DnsAuthorization getDnsAuthorization(); /** - * - * *
    * Required. A definition of the dns authorization to update.
    * 
* - * - * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.certificatemanager.v1.DnsAuthorization dns_authorization = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.certificatemanager.v1.DnsAuthorizationOrBuilder getDnsAuthorizationOrBuilder(); /** - * - * *
-   * Required. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .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. The update mask applies to the resource. For the `FieldMask` definition,
-   * see
+   * Required. The update mask applies to the resource. For the `FieldMask`
+   * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/proto/google/cloud/certificatemanager/v1/certificate_issuance_config.proto b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/proto/google/cloud/certificatemanager/v1/certificate_issuance_config.proto new file mode 100644 index 000000000000..629cb5944f93 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/proto/google/cloud/certificatemanager/v1/certificate_issuance_config.proto @@ -0,0 +1,200 @@ +// 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.certificatemanager.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.CertificateManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/certificatemanager/v1;certificatemanager"; +option java_multiple_files = true; +option java_outer_classname = "CertificateIssuanceConfigProto"; +option java_package = "com.google.cloud.certificatemanager.v1"; +option php_namespace = "Google\\Cloud\\CertificateManager\\V1"; +option ruby_package = "Google::Cloud::CertificateManager::V1"; +option (google.api.resource_definition) = { + type: "privateca.googleapis.com/CaPool" + pattern: "projects/{project}/locations/{location}/caPools/{ca_pool}" +}; + +// Request for the `ListCertificateIssuanceConfigs` method. +message ListCertificateIssuanceConfigsRequest { + // Required. The project and location from which the certificate should be + // listed, specified in the format `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Maximum number of certificate configs to return per call. + int32 page_size = 2; + + // The value returned by the last `ListCertificateIssuanceConfigsResponse`. + // Indicates that this is a continuation of a prior + // `ListCertificateIssuanceConfigs` call, and that the system should return + // the next page of data. + string page_token = 3; + + // Filter expression to restrict the Certificates Configs returned. + string filter = 4; + + // A list of Certificate Config field names used to specify the order of the + // returned results. The default sorting order is ascending. To specify + // descending order for a field, add a suffix " desc". + string order_by = 5; +} + +// Response for the `ListCertificateIssuanceConfigs` method. +message ListCertificateIssuanceConfigsResponse { + // A list of certificate configs for the parent resource. + repeated CertificateIssuanceConfig certificate_issuance_configs = 1; + + // If there might be more results than those appearing in this response, then + // `next_page_token` is included. To get the next set of results, call this + // method again using the value of `next_page_token` as `page_token`. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request for the `GetCertificateIssuanceConfig` method. +message GetCertificateIssuanceConfigRequest { + // Required. A name of the certificate issuance config to describe. Must be in + // the format `projects/*/locations/*/certificateIssuanceConfigs/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "certificatemanager.googleapis.com/CertificateIssuanceConfig" + } + ]; +} + +// Request for the `CreateCertificateIssuanceConfig` method. +message CreateCertificateIssuanceConfigRequest { + // Required. The parent resource of the certificate issuance config. Must be + // in the format `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. A user-provided name of the certificate config. + string certificate_issuance_config_id = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. A definition of the certificate issuance config to create. + CertificateIssuanceConfig certificate_issuance_config = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request for the `DeleteCertificateIssuanceConfig` method. +message DeleteCertificateIssuanceConfigRequest { + // Required. A name of the certificate issuance config to delete. Must be in + // the format `projects/*/locations/*/certificateIssuanceConfigs/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "certificatemanager.googleapis.com/CertificateIssuanceConfig" + } + ]; +} + +// CertificateIssuanceConfig specifies how to issue and manage a certificate. +message CertificateIssuanceConfig { + option (google.api.resource) = { + type: "certificatemanager.googleapis.com/CertificateIssuanceConfig" + pattern: "projects/{project}/locations/{location}/certificateIssuanceConfigs/{certificate_issuance_config}" + }; + + // The CA that issues the workload certificate. It includes CA address, type, + // authentication to CA service, etc. + message CertificateAuthorityConfig { + // Contains information required to contact CA service. + message CertificateAuthorityServiceConfig { + // Required. A CA pool resource used to issue a certificate. + // The CA pool string has a relative resource path following the form + // "projects/{project}/locations/{location}/caPools/{ca_pool}". + string ca_pool = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "privateca.googleapis.com/CaPool" + } + ]; + } + + oneof kind { + // Defines a CertificateAuthorityServiceConfig. + CertificateAuthorityServiceConfig certificate_authority_service_config = + 1; + } + } + + // The type of keypair to generate. + enum KeyAlgorithm { + // Unspecified key algorithm. + KEY_ALGORITHM_UNSPECIFIED = 0; + + // Specifies RSA with a 2048-bit modulus. + RSA_2048 = 1; + + // Specifies ECDSA with curve P256. + ECDSA_P256 = 4; + } + + // A user-defined name of the certificate issuance config. + // CertificateIssuanceConfig names must be unique globally and match pattern + // `projects/*/locations/*/certificateIssuanceConfigs/*`. + string name = 1; + + // Output only. The creation timestamp of a CertificateIssuanceConfig. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The last update timestamp of a CertificateIssuanceConfig. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Set of labels associated with a CertificateIssuanceConfig. + map labels = 4; + + // One or more paragraphs of text description of a CertificateIssuanceConfig. + string description = 5; + + // Required. The CA that issues the workload certificate. It includes the CA + // address, type, authentication to CA service, etc. + CertificateAuthorityConfig certificate_authority_config = 6 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Workload certificate lifetime requested. + google.protobuf.Duration lifetime = 7 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Specifies the percentage of elapsed time of the certificate + // lifetime to wait before renewing the certificate. Must be a number between + // 1-99, inclusive. + int32 rotation_window_percentage = 8 [(google.api.field_behavior) = REQUIRED]; + + // Required. The key algorithm to use when generating the private key. + KeyAlgorithm key_algorithm = 9 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/proto/google/cloud/certificatemanager/v1/certificate_manager.proto b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/proto/google/cloud/certificatemanager/v1/certificate_manager.proto similarity index 77% rename from java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/proto/google/cloud/certificatemanager/v1/certificate_manager.proto rename to owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/proto/google/cloud/certificatemanager/v1/certificate_manager.proto index 2b221da443fa..07b4c0859579 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/src/main/proto/google/cloud/certificatemanager/v1/certificate_manager.proto +++ b/owl-bot-staging/java-certificate-manager/v1/proto-google-cloud-certificate-manager-v1/src/main/proto/google/cloud/certificatemanager/v1/certificate_manager.proto @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/certificatemanager/v1/certificate_issuance_config.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -60,10 +61,12 @@ option ruby_package = "Google::Cloud::CertificateManager::V1"; // Provides methods to manage Cloud Certificate Manager entities. service CertificateManager { option (google.api.default_host) = "certificatemanager.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Lists Certificates in a given project and location. - rpc ListCertificates(ListCertificatesRequest) returns (ListCertificatesResponse) { + rpc ListCertificates(ListCertificatesRequest) + returns (ListCertificatesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/certificates" }; @@ -79,7 +82,8 @@ service CertificateManager { } // Creates a new Certificate in a given project and location. - rpc CreateCertificate(CreateCertificateRequest) returns (google.longrunning.Operation) { + rpc CreateCertificate(CreateCertificateRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/certificates" body: "certificate" @@ -92,7 +96,8 @@ service CertificateManager { } // Updates a Certificate. - rpc UpdateCertificate(UpdateCertificateRequest) returns (google.longrunning.Operation) { + rpc UpdateCertificate(UpdateCertificateRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{certificate.name=projects/*/locations/*/certificates/*}" body: "certificate" @@ -105,7 +110,8 @@ service CertificateManager { } // Deletes a single Certificate. - rpc DeleteCertificate(DeleteCertificateRequest) returns (google.longrunning.Operation) { + rpc DeleteCertificate(DeleteCertificateRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/certificates/*}" }; @@ -117,7 +123,8 @@ service CertificateManager { } // Lists CertificateMaps in a given project and location. - rpc ListCertificateMaps(ListCertificateMapsRequest) returns (ListCertificateMapsResponse) { + rpc ListCertificateMaps(ListCertificateMapsRequest) + returns (ListCertificateMapsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/certificateMaps" }; @@ -133,12 +140,14 @@ service CertificateManager { } // Creates a new CertificateMap in a given project and location. - rpc CreateCertificateMap(CreateCertificateMapRequest) returns (google.longrunning.Operation) { + rpc CreateCertificateMap(CreateCertificateMapRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/certificateMaps" body: "certificate_map" }; - option (google.api.method_signature) = "parent,certificate_map,certificate_map_id"; + option (google.api.method_signature) = + "parent,certificate_map,certificate_map_id"; option (google.longrunning.operation_info) = { response_type: "CertificateMap" metadata_type: "OperationMetadata" @@ -146,7 +155,8 @@ service CertificateManager { } // Updates a CertificateMap. - rpc UpdateCertificateMap(UpdateCertificateMapRequest) returns (google.longrunning.Operation) { + rpc UpdateCertificateMap(UpdateCertificateMapRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{certificate_map.name=projects/*/locations/*/certificateMaps/*}" body: "certificate_map" @@ -161,7 +171,8 @@ service CertificateManager { // Deletes a single CertificateMap. A Certificate Map can't be deleted // if it contains Certificate Map Entries. Remove all the entries from // the map before calling this method. - rpc DeleteCertificateMap(DeleteCertificateMapRequest) returns (google.longrunning.Operation) { + rpc DeleteCertificateMap(DeleteCertificateMapRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/certificateMaps/*}" }; @@ -173,7 +184,8 @@ service CertificateManager { } // Lists CertificateMapEntries in a given project and location. - rpc ListCertificateMapEntries(ListCertificateMapEntriesRequest) returns (ListCertificateMapEntriesResponse) { + rpc ListCertificateMapEntries(ListCertificateMapEntriesRequest) + returns (ListCertificateMapEntriesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/certificateMaps/*}/certificateMapEntries" }; @@ -181,7 +193,8 @@ service CertificateManager { } // Gets details of a single CertificateMapEntry. - rpc GetCertificateMapEntry(GetCertificateMapEntryRequest) returns (CertificateMapEntry) { + rpc GetCertificateMapEntry(GetCertificateMapEntryRequest) + returns (CertificateMapEntry) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/certificateMaps/*/certificateMapEntries/*}" }; @@ -189,12 +202,14 @@ service CertificateManager { } // Creates a new CertificateMapEntry in a given project and location. - rpc CreateCertificateMapEntry(CreateCertificateMapEntryRequest) returns (google.longrunning.Operation) { + rpc CreateCertificateMapEntry(CreateCertificateMapEntryRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*/certificateMaps/*}/certificateMapEntries" body: "certificate_map_entry" }; - option (google.api.method_signature) = "parent,certificate_map_entry,certificate_map_entry_id"; + option (google.api.method_signature) = + "parent,certificate_map_entry,certificate_map_entry_id"; option (google.longrunning.operation_info) = { response_type: "CertificateMapEntry" metadata_type: "OperationMetadata" @@ -202,7 +217,8 @@ service CertificateManager { } // Updates a CertificateMapEntry. - rpc UpdateCertificateMapEntry(UpdateCertificateMapEntryRequest) returns (google.longrunning.Operation) { + rpc UpdateCertificateMapEntry(UpdateCertificateMapEntryRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{certificate_map_entry.name=projects/*/locations/*/certificateMaps/*/certificateMapEntries/*}" body: "certificate_map_entry" @@ -215,7 +231,8 @@ service CertificateManager { } // Deletes a single CertificateMapEntry. - rpc DeleteCertificateMapEntry(DeleteCertificateMapEntryRequest) returns (google.longrunning.Operation) { + rpc DeleteCertificateMapEntry(DeleteCertificateMapEntryRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/certificateMaps/*/certificateMapEntries/*}" }; @@ -227,7 +244,8 @@ service CertificateManager { } // Lists DnsAuthorizations in a given project and location. - rpc ListDnsAuthorizations(ListDnsAuthorizationsRequest) returns (ListDnsAuthorizationsResponse) { + rpc ListDnsAuthorizations(ListDnsAuthorizationsRequest) + returns (ListDnsAuthorizationsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/dnsAuthorizations" }; @@ -235,7 +253,8 @@ service CertificateManager { } // Gets details of a single DnsAuthorization. - rpc GetDnsAuthorization(GetDnsAuthorizationRequest) returns (DnsAuthorization) { + rpc GetDnsAuthorization(GetDnsAuthorizationRequest) + returns (DnsAuthorization) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/dnsAuthorizations/*}" }; @@ -243,12 +262,14 @@ service CertificateManager { } // Creates a new DnsAuthorization in a given project and location. - rpc CreateDnsAuthorization(CreateDnsAuthorizationRequest) returns (google.longrunning.Operation) { + rpc CreateDnsAuthorization(CreateDnsAuthorizationRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/dnsAuthorizations" body: "dns_authorization" }; - option (google.api.method_signature) = "parent,dns_authorization,dns_authorization_id"; + option (google.api.method_signature) = + "parent,dns_authorization,dns_authorization_id"; option (google.longrunning.operation_info) = { response_type: "DnsAuthorization" metadata_type: "OperationMetadata" @@ -256,7 +277,8 @@ service CertificateManager { } // Updates a DnsAuthorization. - rpc UpdateDnsAuthorization(UpdateDnsAuthorizationRequest) returns (google.longrunning.Operation) { + rpc UpdateDnsAuthorization(UpdateDnsAuthorizationRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{dns_authorization.name=projects/*/locations/*/dnsAuthorizations/*}" body: "dns_authorization" @@ -269,7 +291,8 @@ service CertificateManager { } // Deletes a single DnsAuthorization. - rpc DeleteDnsAuthorization(DeleteDnsAuthorizationRequest) returns (google.longrunning.Operation) { + rpc DeleteDnsAuthorization(DeleteDnsAuthorizationRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/dnsAuthorizations/*}" }; @@ -279,12 +302,58 @@ service CertificateManager { metadata_type: "OperationMetadata" }; } + + // Lists CertificateIssuanceConfigs in a given project and location. + rpc ListCertificateIssuanceConfigs(ListCertificateIssuanceConfigsRequest) + returns (ListCertificateIssuanceConfigsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/certificateIssuanceConfigs" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single CertificateIssuanceConfig. + rpc GetCertificateIssuanceConfig(GetCertificateIssuanceConfigRequest) + returns (CertificateIssuanceConfig) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/certificateIssuanceConfigs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new CertificateIssuanceConfig in a given project and location. + rpc CreateCertificateIssuanceConfig(CreateCertificateIssuanceConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/certificateIssuanceConfigs" + body: "certificate_issuance_config" + }; + option (google.api.method_signature) = + "parent,certificate_issuance_config,certificate_issuance_config_id"; + option (google.longrunning.operation_info) = { + response_type: "CertificateIssuanceConfig" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single CertificateIssuanceConfig. + rpc DeleteCertificateIssuanceConfig(DeleteCertificateIssuanceConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/certificateIssuanceConfigs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } } // Request for the `ListCertificates` method. message ListCertificatesRequest { - // Required. The project and location from which the certificate should be listed, - // specified in the format `projects/*/locations/*`. + // Required. The project and location from which the certificate should be + // listed, specified in the format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -358,10 +427,11 @@ message UpdateCertificateRequest { // Required. A definition of the certificate to update. Certificate certificate = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The update mask applies to the resource. For the `FieldMask` definition, - // see + // Required. The update mask applies to the resource. For the `FieldMask` + // definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request for the `DeleteCertificate` method. @@ -378,8 +448,8 @@ message DeleteCertificateRequest { // Request for the `ListCertificateMaps` method. message ListCertificateMapsRequest { - // Required. The project and location from which the certificate maps should be listed, - // specified in the format `projects/*/locations/*`. + // Required. The project and location from which the certificate maps should + // be listed, specified in the format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -453,10 +523,11 @@ message UpdateCertificateMapRequest { // Required. A definition of the certificate map to update. CertificateMap certificate_map = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The update mask applies to the resource. For the `FieldMask` definition, - // see + // Required. The update mask applies to the resource. For the `FieldMask` + // definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request for the `DeleteCertificateMap` method. @@ -473,8 +544,8 @@ message DeleteCertificateMapRequest { // Request for the `ListCertificateMapEntries` method. message ListCertificateMapEntriesRequest { - // Required. The project, location and certificate map from which the certificate map - // entries should be listed, specified in the format + // Required. The project, location and certificate map from which the + // certificate map entries should be listed, specified in the format // `projects/*/locations/*/certificateMaps/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -545,24 +616,27 @@ message CreateCertificateMapEntryRequest { string certificate_map_entry_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. A definition of the certificate map entry to create. - CertificateMapEntry certificate_map_entry = 3 [(google.api.field_behavior) = REQUIRED]; + CertificateMapEntry certificate_map_entry = 3 + [(google.api.field_behavior) = REQUIRED]; } // Request for the `UpdateCertificateMapEntry` method. message UpdateCertificateMapEntryRequest { // Required. A definition of the certificate map entry to create map entry. - CertificateMapEntry certificate_map_entry = 1 [(google.api.field_behavior) = REQUIRED]; + CertificateMapEntry certificate_map_entry = 1 + [(google.api.field_behavior) = REQUIRED]; - // Required. The update mask applies to the resource. For the `FieldMask` definition, - // see + // Required. The update mask applies to the resource. For the `FieldMask` + // definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request for the `DeleteCertificateMapEntry` method. message DeleteCertificateMapEntryRequest { - // Required. A name of the certificate map entry to delete. Must be in the format - // `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`. + // Required. A name of the certificate map entry to delete. Must be in the + // format `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -573,8 +647,8 @@ message DeleteCertificateMapEntryRequest { // Request for the `ListDnsAuthorizations` method. message ListDnsAuthorizationsRequest { - // Required. The project and location from which the dns authorizations should be - // listed, specified in the format `projects/*/locations/*`. + // Required. The project and location from which the dns authorizations should + // be listed, specified in the format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -615,8 +689,8 @@ message ListDnsAuthorizationsResponse { // Request for the `GetDnsAuthorization` method. message GetDnsAuthorizationRequest { - // Required. A name of the dns authorization to describe. Must be in the format - // `projects/*/locations/*/dnsAuthorizations/*`. + // Required. A name of the dns authorization to describe. Must be in the + // format `projects/*/locations/*/dnsAuthorizations/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -627,8 +701,8 @@ message GetDnsAuthorizationRequest { // Request for the `CreateDnsAuthorization` method. message CreateDnsAuthorizationRequest { - // Required. The parent resource of the dns authorization. Must be in the format - // `projects/*/locations/*`. + // Required. The parent resource of the dns authorization. Must be in the + // format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -640,18 +714,21 @@ message CreateDnsAuthorizationRequest { string dns_authorization_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. A definition of the dns authorization to create. - DnsAuthorization dns_authorization = 3 [(google.api.field_behavior) = REQUIRED]; + DnsAuthorization dns_authorization = 3 + [(google.api.field_behavior) = REQUIRED]; } // Request for the `UpdateDnsAuthorization` method. message UpdateDnsAuthorizationRequest { // Required. A definition of the dns authorization to update. - DnsAuthorization dns_authorization = 1 [(google.api.field_behavior) = REQUIRED]; + DnsAuthorization dns_authorization = 1 + [(google.api.field_behavior) = REQUIRED]; - // Required. The update mask applies to the resource. For the `FieldMask` definition, - // see + // Required. The update mask applies to the resource. For the `FieldMask` + // definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request for the `DeleteDnsAuthorization` method. @@ -685,8 +762,9 @@ message OperationMetadata { // Identifies whether the user has requested cancellation // of the operation. Operations that have successfully been cancelled - // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`. + // have [Operation.error][] value with a + // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + // `Code.CANCELLED`. bool requested_cancellation = 6; // API version used to start the operation. @@ -751,13 +829,13 @@ message Certificate { RATE_LIMITED = 2; } - // Reason for provisioning failures. - Reason reason = 1; + // Output only. Reason for provisioning failures. + Reason reason = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Human readable explanation about the issue. Provided to help address - // the configuration issues. - // Not guaranteed to be stable. For programmatic access use Reason enum. - string details = 2; + // Output only. Human readable explanation about the issue. Provided to + // help address the configuration issues. Not guaranteed to be stable. For + // programmatic access use Reason enum. + string details = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // State of the latest attempt to authorize a domain for certificate @@ -798,23 +876,27 @@ message Certificate { // Domain name of the authorization attempt. string domain = 1; - // State of the domain for managed certificate issuance. - State state = 2; + // Output only. State of the domain for managed certificate issuance. + State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Reason for failure of the authorization attempt for the domain. - FailureReason failure_reason = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Reason for failure of the authorization attempt for the + // domain. + FailureReason failure_reason = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Human readable explanation for reaching the state. Provided to help - // address the configuration issues. - // Not guaranteed to be stable. For programmatic access use Reason enum. - string details = 4; + // Output only. Human readable explanation for reaching the state. + // Provided to help address the configuration issues. Not guaranteed to be + // stable. For programmatic access use FailureReason enum. + string details = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } - // Immutable. The domains for which a managed SSL certificate will be generated. - // Wildcard domains are only supported with DNS challenge resolution. + // Immutable. The domains for which a managed SSL certificate will be + // generated. Wildcard domains are only supported with DNS challenge + // resolution. repeated string domains = 1 [(google.api.field_behavior) = IMMUTABLE]; - // Immutable. Authorizations that will be used for performing domain authorization. + // Immutable. Authorizations that will be used for performing domain + // authorization. repeated string dns_authorizations = 2 [ (google.api.field_behavior) = IMMUTABLE, (google.api.resource_reference) = { @@ -822,15 +904,32 @@ message Certificate { } ]; + // The resource name for a + // [CertificateIssuanceConfig][google.cloud.certificatemanager.v1.CertificateIssuanceConfig] + // used to configure private PKI certificates in the format + // `projects/*/locations/*/certificateIssuanceConfigs/*`. + // If this field is not set, the certificates will instead be publicly + // signed as documented at + // https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa. + string issuance_config = 6 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "certificatemanager.googleapis.com/CertificateIssuanceConfig" + } + ]; + // Output only. State of the managed certificate resource. State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Information about issues with provisioning a Managed Certificate. - ProvisioningIssue provisioning_issue = 3; + // Output only. Information about issues with provisioning a Managed + // Certificate. + ProvisioningIssue provisioning_issue = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Detailed state of the latest authorization attempt for each domain - // specified for managed certificate resource. - repeated AuthorizationAttemptInfo authorization_attempt_info = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Detailed state of the latest authorization attempt for each + // domain specified for managed certificate resource. + repeated AuthorizationAttemptInfo authorization_attempt_info = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Certificate scope. @@ -852,10 +951,12 @@ message Certificate { string description = 8; // Output only. The creation timestamp of a Certificate. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last update timestamp of a Certificate. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Set of labels associated with a Certificate. map labels = 4; @@ -868,17 +969,18 @@ message Certificate { ManagedCertificate managed = 11; } - // Output only. The list of Subject Alternative Names of dnsName type defined in the - // certificate (see RFC 5280 4.2.1.6). - // Managed certificates that haven't been provisioned yet have this field - // populated with a value of the managed.domains field. + // Output only. The list of Subject Alternative Names of dnsName type defined + // in the certificate (see RFC 5280 4.2.1.6). Managed certificates that + // haven't been provisioned yet have this field populated with a value of the + // managed.domains field. repeated string san_dnsnames = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The PEM-encoded certificate chain. string pem_certificate = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The expiry timestamp of a Certificate. - google.protobuf.Timestamp expire_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp expire_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Immutable. The scope of the certificate. Scope scope = 12 [(google.api.field_behavior) = IMMUTABLE]; @@ -895,27 +997,30 @@ message CertificateMap { message GclbTarget { // Defines IP configuration where this Certificate Map is serving. message IpConfig { - // An external IP address. - string ip_address = 1; + // Output only. An external IP address. + string ip_address = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Ports. - repeated uint32 ports = 3; + // Output only. Ports. + repeated uint32 ports = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A Target Proxy to which this map is attached to. oneof target_proxy { - // This field returns the resource name in the following format: + // Output only. This field returns the resource name in the following + // format: // `//compute.googleapis.com/projects/*/global/targetHttpsProxies/*`. - string target_https_proxy = 1; + string target_https_proxy = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // This field returns the resource name in the following format: + // Output only. This field returns the resource name in the following + // format: // `//compute.googleapis.com/projects/*/global/targetSslProxies/*`. - string target_ssl_proxy = 3; + string target_ssl_proxy = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } - // IP configurations for this Target Proxy where the + // Output only. IP configurations for this Target Proxy where the // Certificate Map is serving. - repeated IpConfig ip_configs = 2; + repeated IpConfig ip_configs = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A user-defined name of the Certificate Map. Certificate Map names must be @@ -927,16 +1032,21 @@ message CertificateMap { string description = 5; // Output only. The creation timestamp of a Certificate Map. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The update timestamp of a Certificate Map. - google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Set of labels associated with a Certificate Map. map labels = 3; // Output only. A list of GCLB targets which use this Certificate Map. - repeated GclbTarget gclb_targets = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + // A Target Proxy is only present on this list if it's attached to a + // Forwarding Rule. + repeated GclbTarget gclb_targets = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Defines a certificate map entry. @@ -966,10 +1076,12 @@ message CertificateMapEntry { string description = 9; // Output only. The creation timestamp of a Certificate Map Entry. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The update timestamp of a Certificate Map Entry. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Set of labels associated with a Certificate Map Entry. map labels = 4; @@ -988,8 +1100,8 @@ message CertificateMapEntry { // defined up to fifteen certificates in each Certificate Map Entry. Each // certificate must match pattern `projects/*/locations/*/certificates/*`. repeated string certificates = 7 [(google.api.resource_reference) = { - type: "certificatemanager.googleapis.com/Certificate" - }]; + type: "certificatemanager.googleapis.com/Certificate" + }]; // Output only. A serving state of this Certificate Map Entry. ServingState state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -1025,10 +1137,12 @@ message DnsAuthorization { string name = 1; // Output only. The creation timestamp of a DnsAuthorization. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last update timestamp of a DnsAuthorization. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Set of labels associated with a DnsAuthorization. map labels = 4; @@ -1036,16 +1150,19 @@ message DnsAuthorization { // One or more paragraphs of text description of a DnsAuthorization. string description = 5; - // Required. Immutable. A domain which is being authorized. A DnsAuthorization resource covers a - // single domain and its wildcard, e.g. authorization for `example.com` can - // be used to issue certificates for `example.com` and `*.example.com`. + // Required. Immutable. A domain which is being authorized. A DnsAuthorization + // resource covers a single domain and its wildcard, e.g. authorization for + // `example.com` can be used to issue certificates for `example.com` and + // `*.example.com`. string domain = 6 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE ]; - // Output only. DNS Resource Record that needs to be added to DNS configuration. - DnsResourceRecord dns_resource_record = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. DNS Resource Record that needs to be added to DNS + // configuration. + DnsResourceRecord dns_resource_record = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Defines set of serving states associated with a resource. diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/create/SyncCreateSetCredentialsProvider.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/create/SyncCreateSetEndpoint.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/AsyncCreateCertificate.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/AsyncCreateCertificate.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/AsyncCreateCertificate.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/AsyncCreateCertificate.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/AsyncCreateCertificateLRO.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/AsyncCreateCertificateLRO.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/AsyncCreateCertificateLRO.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/AsyncCreateCertificateLRO.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/SyncCreateCertificate.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/SyncCreateCertificate.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/SyncCreateCertificate.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/SyncCreateCertificate.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/SyncCreateCertificateLocationnameCertificateString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/SyncCreateCertificateLocationnameCertificateString.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/SyncCreateCertificateLocationnameCertificateString.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/SyncCreateCertificateLocationnameCertificateString.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/SyncCreateCertificateStringCertificateString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/SyncCreateCertificateStringCertificateString.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/SyncCreateCertificateStringCertificateString.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificate/SyncCreateCertificateStringCertificateString.java diff --git a/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/AsyncCreateCertificateIssuanceConfig.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/AsyncCreateCertificateIssuanceConfig.java new file mode 100644 index 000000000000..deae40504329 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/AsyncCreateCertificateIssuanceConfig.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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest; +import com.google.cloud.certificatemanager.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateCertificateIssuanceConfig { + + public static void main(String[] args) throws Exception { + asyncCreateCertificateIssuanceConfig(); + } + + public static void asyncCreateCertificateIssuanceConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + CreateCertificateIssuanceConfigRequest request = + CreateCertificateIssuanceConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCertificateIssuanceConfigId("certificateIssuanceConfigId1910303023") + .setCertificateIssuanceConfig(CertificateIssuanceConfig.newBuilder().build()) + .build(); + ApiFuture future = + certificateManagerClient.createCertificateIssuanceConfigCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_async] diff --git a/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/AsyncCreateCertificateIssuanceConfigLRO.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/AsyncCreateCertificateIssuanceConfigLRO.java new file mode 100644 index 000000000000..11c57d7ebb9a --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/AsyncCreateCertificateIssuanceConfigLRO.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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest; +import com.google.cloud.certificatemanager.v1.LocationName; +import com.google.cloud.certificatemanager.v1.OperationMetadata; + +public class AsyncCreateCertificateIssuanceConfigLRO { + + public static void main(String[] args) throws Exception { + asyncCreateCertificateIssuanceConfigLRO(); + } + + public static void asyncCreateCertificateIssuanceConfigLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + CreateCertificateIssuanceConfigRequest request = + CreateCertificateIssuanceConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCertificateIssuanceConfigId("certificateIssuanceConfigId1910303023") + .setCertificateIssuanceConfig(CertificateIssuanceConfig.newBuilder().build()) + .build(); + OperationFuture future = + certificateManagerClient + .createCertificateIssuanceConfigOperationCallable() + .futureCall(request); + // Do something. + CertificateIssuanceConfig response = future.get(); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_lro_async] diff --git a/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/SyncCreateCertificateIssuanceConfig.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/SyncCreateCertificateIssuanceConfig.java new file mode 100644 index 000000000000..bb315ba8cdf4 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/SyncCreateCertificateIssuanceConfig.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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest; +import com.google.cloud.certificatemanager.v1.LocationName; + +public class SyncCreateCertificateIssuanceConfig { + + public static void main(String[] args) throws Exception { + syncCreateCertificateIssuanceConfig(); + } + + public static void syncCreateCertificateIssuanceConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + CreateCertificateIssuanceConfigRequest request = + CreateCertificateIssuanceConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCertificateIssuanceConfigId("certificateIssuanceConfigId1910303023") + .setCertificateIssuanceConfig(CertificateIssuanceConfig.newBuilder().build()) + .build(); + CertificateIssuanceConfig response = + certificateManagerClient.createCertificateIssuanceConfigAsync(request).get(); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_sync] diff --git a/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/SyncCreateCertificateIssuanceConfigLocationnameCertificateissuanceconfigString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/SyncCreateCertificateIssuanceConfigLocationnameCertificateissuanceconfigString.java new file mode 100644 index 000000000000..cccac41d83db --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/SyncCreateCertificateIssuanceConfigLocationnameCertificateissuanceconfigString.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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_locationnamecertificateissuanceconfigstring_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.LocationName; + +public class SyncCreateCertificateIssuanceConfigLocationnameCertificateissuanceconfigString { + + public static void main(String[] args) throws Exception { + syncCreateCertificateIssuanceConfigLocationnameCertificateissuanceconfigString(); + } + + public static void + syncCreateCertificateIssuanceConfigLocationnameCertificateissuanceconfigString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CertificateIssuanceConfig certificateIssuanceConfig = + CertificateIssuanceConfig.newBuilder().build(); + String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023"; + CertificateIssuanceConfig response = + certificateManagerClient + .createCertificateIssuanceConfigAsync( + parent, certificateIssuanceConfig, certificateIssuanceConfigId) + .get(); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_locationnamecertificateissuanceconfigstring_sync] diff --git a/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/SyncCreateCertificateIssuanceConfigStringCertificateissuanceconfigString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/SyncCreateCertificateIssuanceConfigStringCertificateissuanceconfigString.java new file mode 100644 index 000000000000..e8383f104bef --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificateissuanceconfig/SyncCreateCertificateIssuanceConfigStringCertificateissuanceconfigString.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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_stringcertificateissuanceconfigstring_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.LocationName; + +public class SyncCreateCertificateIssuanceConfigStringCertificateissuanceconfigString { + + public static void main(String[] args) throws Exception { + syncCreateCertificateIssuanceConfigStringCertificateissuanceconfigString(); + } + + public static void syncCreateCertificateIssuanceConfigStringCertificateissuanceconfigString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + CertificateIssuanceConfig certificateIssuanceConfig = + CertificateIssuanceConfig.newBuilder().build(); + String certificateIssuanceConfigId = "certificateIssuanceConfigId1910303023"; + CertificateIssuanceConfig response = + certificateManagerClient + .createCertificateIssuanceConfigAsync( + parent, certificateIssuanceConfig, certificateIssuanceConfigId) + .get(); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_createcertificateissuanceconfig_stringcertificateissuanceconfigstring_sync] diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/AsyncCreateCertificateMap.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/AsyncCreateCertificateMap.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/AsyncCreateCertificateMap.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/AsyncCreateCertificateMap.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/AsyncCreateCertificateMapLRO.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/AsyncCreateCertificateMapLRO.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/AsyncCreateCertificateMapLRO.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/AsyncCreateCertificateMapLRO.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/SyncCreateCertificateMap.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/SyncCreateCertificateMap.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/SyncCreateCertificateMap.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/SyncCreateCertificateMap.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/SyncCreateCertificateMapLocationnameCertificatemapString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/SyncCreateCertificateMapLocationnameCertificatemapString.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/SyncCreateCertificateMapLocationnameCertificatemapString.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/SyncCreateCertificateMapLocationnameCertificatemapString.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/SyncCreateCertificateMapStringCertificatemapString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/SyncCreateCertificateMapStringCertificatemapString.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/SyncCreateCertificateMapStringCertificatemapString.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemap/SyncCreateCertificateMapStringCertificatemapString.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/AsyncCreateCertificateMapEntry.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/AsyncCreateCertificateMapEntry.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/AsyncCreateCertificateMapEntry.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/AsyncCreateCertificateMapEntry.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/AsyncCreateCertificateMapEntryLRO.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/AsyncCreateCertificateMapEntryLRO.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/AsyncCreateCertificateMapEntryLRO.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/AsyncCreateCertificateMapEntryLRO.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/SyncCreateCertificateMapEntry.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/SyncCreateCertificateMapEntry.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/SyncCreateCertificateMapEntry.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/SyncCreateCertificateMapEntry.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/SyncCreateCertificateMapEntryCertificatemapnameCertificatemapentryString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/SyncCreateCertificateMapEntryCertificatemapnameCertificatemapentryString.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/SyncCreateCertificateMapEntryCertificatemapnameCertificatemapentryString.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/SyncCreateCertificateMapEntryCertificatemapnameCertificatemapentryString.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/SyncCreateCertificateMapEntryStringCertificatemapentryString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/SyncCreateCertificateMapEntryStringCertificatemapentryString.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/SyncCreateCertificateMapEntryStringCertificatemapentryString.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/createcertificatemapentry/SyncCreateCertificateMapEntryStringCertificatemapentryString.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/AsyncCreateDnsAuthorization.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/AsyncCreateDnsAuthorization.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/AsyncCreateDnsAuthorization.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/AsyncCreateDnsAuthorization.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/AsyncCreateDnsAuthorizationLRO.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/AsyncCreateDnsAuthorizationLRO.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/AsyncCreateDnsAuthorizationLRO.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/AsyncCreateDnsAuthorizationLRO.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/SyncCreateDnsAuthorization.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/SyncCreateDnsAuthorization.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/SyncCreateDnsAuthorization.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/SyncCreateDnsAuthorization.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/SyncCreateDnsAuthorizationLocationnameDnsauthorizationString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/SyncCreateDnsAuthorizationLocationnameDnsauthorizationString.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/SyncCreateDnsAuthorizationLocationnameDnsauthorizationString.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/SyncCreateDnsAuthorizationLocationnameDnsauthorizationString.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/SyncCreateDnsAuthorizationStringDnsauthorizationString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/SyncCreateDnsAuthorizationStringDnsauthorizationString.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/SyncCreateDnsAuthorizationStringDnsauthorizationString.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/creatednsauthorization/SyncCreateDnsAuthorizationStringDnsauthorizationString.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/AsyncDeleteCertificate.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/AsyncDeleteCertificate.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/AsyncDeleteCertificate.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/AsyncDeleteCertificate.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/AsyncDeleteCertificateLRO.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/AsyncDeleteCertificateLRO.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/AsyncDeleteCertificateLRO.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/AsyncDeleteCertificateLRO.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/SyncDeleteCertificate.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/SyncDeleteCertificate.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/SyncDeleteCertificate.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/SyncDeleteCertificate.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/SyncDeleteCertificateCertificatename.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/SyncDeleteCertificateCertificatename.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/SyncDeleteCertificateCertificatename.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/SyncDeleteCertificateCertificatename.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/SyncDeleteCertificateString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/SyncDeleteCertificateString.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/SyncDeleteCertificateString.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificate/SyncDeleteCertificateString.java diff --git a/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/AsyncDeleteCertificateIssuanceConfig.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/AsyncDeleteCertificateIssuanceConfig.java new file mode 100644 index 000000000000..19114afba237 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/AsyncDeleteCertificateIssuanceConfig.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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_deletecertificateissuanceconfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigName; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteCertificateIssuanceConfig { + + public static void main(String[] args) throws Exception { + asyncDeleteCertificateIssuanceConfig(); + } + + public static void asyncDeleteCertificateIssuanceConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + DeleteCertificateIssuanceConfigRequest request = + DeleteCertificateIssuanceConfigRequest.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .build(); + ApiFuture future = + certificateManagerClient.deleteCertificateIssuanceConfigCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_deletecertificateissuanceconfig_async] diff --git a/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/AsyncDeleteCertificateIssuanceConfigLRO.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/AsyncDeleteCertificateIssuanceConfigLRO.java new file mode 100644 index 000000000000..81be2c9fc036 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/AsyncDeleteCertificateIssuanceConfigLRO.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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_deletecertificateissuanceconfig_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigName; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest; +import com.google.cloud.certificatemanager.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteCertificateIssuanceConfigLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteCertificateIssuanceConfigLRO(); + } + + public static void asyncDeleteCertificateIssuanceConfigLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + DeleteCertificateIssuanceConfigRequest request = + DeleteCertificateIssuanceConfigRequest.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .build(); + OperationFuture future = + certificateManagerClient + .deleteCertificateIssuanceConfigOperationCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_deletecertificateissuanceconfig_lro_async] diff --git a/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/SyncDeleteCertificateIssuanceConfig.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/SyncDeleteCertificateIssuanceConfig.java new file mode 100644 index 000000000000..98e813c6a851 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/SyncDeleteCertificateIssuanceConfig.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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_deletecertificateissuanceconfig_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigName; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteCertificateIssuanceConfig { + + public static void main(String[] args) throws Exception { + syncDeleteCertificateIssuanceConfig(); + } + + public static void syncDeleteCertificateIssuanceConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + DeleteCertificateIssuanceConfigRequest request = + DeleteCertificateIssuanceConfigRequest.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .build(); + certificateManagerClient.deleteCertificateIssuanceConfigAsync(request).get(); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_deletecertificateissuanceconfig_sync] diff --git a/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/SyncDeleteCertificateIssuanceConfigCertificateissuanceconfigname.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/SyncDeleteCertificateIssuanceConfigCertificateissuanceconfigname.java new file mode 100644 index 000000000000..9ed42cf4a544 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/SyncDeleteCertificateIssuanceConfigCertificateissuanceconfigname.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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_deletecertificateissuanceconfig_certificateissuanceconfigname_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigName; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCertificateIssuanceConfigCertificateissuanceconfigname { + + public static void main(String[] args) throws Exception { + syncDeleteCertificateIssuanceConfigCertificateissuanceconfigname(); + } + + public static void syncDeleteCertificateIssuanceConfigCertificateissuanceconfigname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + CertificateIssuanceConfigName name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]"); + certificateManagerClient.deleteCertificateIssuanceConfigAsync(name).get(); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_deletecertificateissuanceconfig_certificateissuanceconfigname_sync] diff --git a/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/SyncDeleteCertificateIssuanceConfigString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/SyncDeleteCertificateIssuanceConfigString.java new file mode 100644 index 000000000000..171fbd454895 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificateissuanceconfig/SyncDeleteCertificateIssuanceConfigString.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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_deletecertificateissuanceconfig_string_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigName; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCertificateIssuanceConfigString { + + public static void main(String[] args) throws Exception { + syncDeleteCertificateIssuanceConfigString(); + } + + public static void syncDeleteCertificateIssuanceConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + String name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString(); + certificateManagerClient.deleteCertificateIssuanceConfigAsync(name).get(); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_deletecertificateissuanceconfig_string_sync] diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/AsyncDeleteCertificateMap.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/AsyncDeleteCertificateMap.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/AsyncDeleteCertificateMap.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/AsyncDeleteCertificateMap.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/AsyncDeleteCertificateMapLRO.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/AsyncDeleteCertificateMapLRO.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/AsyncDeleteCertificateMapLRO.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/AsyncDeleteCertificateMapLRO.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/SyncDeleteCertificateMap.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/SyncDeleteCertificateMap.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/SyncDeleteCertificateMap.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/SyncDeleteCertificateMap.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/SyncDeleteCertificateMapCertificatemapname.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/SyncDeleteCertificateMapCertificatemapname.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/SyncDeleteCertificateMapCertificatemapname.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/SyncDeleteCertificateMapCertificatemapname.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/SyncDeleteCertificateMapString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/SyncDeleteCertificateMapString.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/SyncDeleteCertificateMapString.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemap/SyncDeleteCertificateMapString.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/AsyncDeleteCertificateMapEntry.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/AsyncDeleteCertificateMapEntry.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/AsyncDeleteCertificateMapEntry.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/AsyncDeleteCertificateMapEntry.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/AsyncDeleteCertificateMapEntryLRO.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/AsyncDeleteCertificateMapEntryLRO.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/AsyncDeleteCertificateMapEntryLRO.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/AsyncDeleteCertificateMapEntryLRO.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/SyncDeleteCertificateMapEntry.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/SyncDeleteCertificateMapEntry.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/SyncDeleteCertificateMapEntry.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/SyncDeleteCertificateMapEntry.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/SyncDeleteCertificateMapEntryCertificatemapentryname.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/SyncDeleteCertificateMapEntryCertificatemapentryname.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/SyncDeleteCertificateMapEntryCertificatemapentryname.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/SyncDeleteCertificateMapEntryCertificatemapentryname.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/SyncDeleteCertificateMapEntryString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/SyncDeleteCertificateMapEntryString.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/SyncDeleteCertificateMapEntryString.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletecertificatemapentry/SyncDeleteCertificateMapEntryString.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/AsyncDeleteDnsAuthorization.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/AsyncDeleteDnsAuthorization.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/AsyncDeleteDnsAuthorization.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/AsyncDeleteDnsAuthorization.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/AsyncDeleteDnsAuthorizationLRO.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/AsyncDeleteDnsAuthorizationLRO.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/AsyncDeleteDnsAuthorizationLRO.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/AsyncDeleteDnsAuthorizationLRO.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/SyncDeleteDnsAuthorization.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/SyncDeleteDnsAuthorization.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/SyncDeleteDnsAuthorization.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/SyncDeleteDnsAuthorization.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/SyncDeleteDnsAuthorizationDnsauthorizationname.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/SyncDeleteDnsAuthorizationDnsauthorizationname.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/SyncDeleteDnsAuthorizationDnsauthorizationname.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/SyncDeleteDnsAuthorizationDnsauthorizationname.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/SyncDeleteDnsAuthorizationString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/SyncDeleteDnsAuthorizationString.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/SyncDeleteDnsAuthorizationString.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/deletednsauthorization/SyncDeleteDnsAuthorizationString.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificate/AsyncGetCertificate.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificate/AsyncGetCertificate.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificate/AsyncGetCertificate.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificate/AsyncGetCertificate.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificate/SyncGetCertificate.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificate/SyncGetCertificate.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificate/SyncGetCertificate.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificate/SyncGetCertificate.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificate/SyncGetCertificateCertificatename.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificate/SyncGetCertificateCertificatename.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificate/SyncGetCertificateCertificatename.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificate/SyncGetCertificateCertificatename.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificate/SyncGetCertificateString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificate/SyncGetCertificateString.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificate/SyncGetCertificateString.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificate/SyncGetCertificateString.java diff --git a/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/AsyncGetCertificateIssuanceConfig.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/AsyncGetCertificateIssuanceConfig.java new file mode 100644 index 000000000000..31307718b097 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/AsyncGetCertificateIssuanceConfig.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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_getcertificateissuanceconfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigName; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest; + +public class AsyncGetCertificateIssuanceConfig { + + public static void main(String[] args) throws Exception { + asyncGetCertificateIssuanceConfig(); + } + + public static void asyncGetCertificateIssuanceConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + GetCertificateIssuanceConfigRequest request = + GetCertificateIssuanceConfigRequest.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .build(); + ApiFuture future = + certificateManagerClient.getCertificateIssuanceConfigCallable().futureCall(request); + // Do something. + CertificateIssuanceConfig response = future.get(); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_getcertificateissuanceconfig_async] diff --git a/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/SyncGetCertificateIssuanceConfig.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/SyncGetCertificateIssuanceConfig.java new file mode 100644 index 000000000000..aaca8567bf63 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/SyncGetCertificateIssuanceConfig.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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_getcertificateissuanceconfig_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigName; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest; + +public class SyncGetCertificateIssuanceConfig { + + public static void main(String[] args) throws Exception { + syncGetCertificateIssuanceConfig(); + } + + public static void syncGetCertificateIssuanceConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + GetCertificateIssuanceConfigRequest request = + GetCertificateIssuanceConfigRequest.newBuilder() + .setName( + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString()) + .build(); + CertificateIssuanceConfig response = + certificateManagerClient.getCertificateIssuanceConfig(request); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_getcertificateissuanceconfig_sync] diff --git a/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/SyncGetCertificateIssuanceConfigCertificateissuanceconfigname.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/SyncGetCertificateIssuanceConfigCertificateissuanceconfigname.java new file mode 100644 index 000000000000..caac79dab661 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/SyncGetCertificateIssuanceConfigCertificateissuanceconfigname.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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_getcertificateissuanceconfig_certificateissuanceconfigname_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigName; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; + +public class SyncGetCertificateIssuanceConfigCertificateissuanceconfigname { + + public static void main(String[] args) throws Exception { + syncGetCertificateIssuanceConfigCertificateissuanceconfigname(); + } + + public static void syncGetCertificateIssuanceConfigCertificateissuanceconfigname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + CertificateIssuanceConfigName name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]"); + CertificateIssuanceConfig response = + certificateManagerClient.getCertificateIssuanceConfig(name); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_getcertificateissuanceconfig_certificateissuanceconfigname_sync] diff --git a/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/SyncGetCertificateIssuanceConfigString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/SyncGetCertificateIssuanceConfigString.java new file mode 100644 index 000000000000..bc76702ae5f1 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificateissuanceconfig/SyncGetCertificateIssuanceConfigString.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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_getcertificateissuanceconfig_string_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfigName; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; + +public class SyncGetCertificateIssuanceConfigString { + + public static void main(String[] args) throws Exception { + syncGetCertificateIssuanceConfigString(); + } + + public static void syncGetCertificateIssuanceConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + String name = + CertificateIssuanceConfigName.of( + "[PROJECT]", "[LOCATION]", "[CERTIFICATE_ISSUANCE_CONFIG]") + .toString(); + CertificateIssuanceConfig response = + certificateManagerClient.getCertificateIssuanceConfig(name); + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_getcertificateissuanceconfig_string_sync] diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemap/AsyncGetCertificateMap.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemap/AsyncGetCertificateMap.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemap/AsyncGetCertificateMap.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemap/AsyncGetCertificateMap.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemap/SyncGetCertificateMap.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemap/SyncGetCertificateMap.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemap/SyncGetCertificateMap.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemap/SyncGetCertificateMap.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemap/SyncGetCertificateMapCertificatemapname.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemap/SyncGetCertificateMapCertificatemapname.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemap/SyncGetCertificateMapCertificatemapname.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemap/SyncGetCertificateMapCertificatemapname.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemap/SyncGetCertificateMapString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemap/SyncGetCertificateMapString.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemap/SyncGetCertificateMapString.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemap/SyncGetCertificateMapString.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemapentry/AsyncGetCertificateMapEntry.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemapentry/AsyncGetCertificateMapEntry.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemapentry/AsyncGetCertificateMapEntry.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemapentry/AsyncGetCertificateMapEntry.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemapentry/SyncGetCertificateMapEntry.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemapentry/SyncGetCertificateMapEntry.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemapentry/SyncGetCertificateMapEntry.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemapentry/SyncGetCertificateMapEntry.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemapentry/SyncGetCertificateMapEntryCertificatemapentryname.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemapentry/SyncGetCertificateMapEntryCertificatemapentryname.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemapentry/SyncGetCertificateMapEntryCertificatemapentryname.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemapentry/SyncGetCertificateMapEntryCertificatemapentryname.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemapentry/SyncGetCertificateMapEntryString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemapentry/SyncGetCertificateMapEntryString.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemapentry/SyncGetCertificateMapEntryString.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getcertificatemapentry/SyncGetCertificateMapEntryString.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getdnsauthorization/AsyncGetDnsAuthorization.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getdnsauthorization/AsyncGetDnsAuthorization.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getdnsauthorization/AsyncGetDnsAuthorization.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getdnsauthorization/AsyncGetDnsAuthorization.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getdnsauthorization/SyncGetDnsAuthorization.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getdnsauthorization/SyncGetDnsAuthorization.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getdnsauthorization/SyncGetDnsAuthorization.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getdnsauthorization/SyncGetDnsAuthorization.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getdnsauthorization/SyncGetDnsAuthorizationDnsauthorizationname.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getdnsauthorization/SyncGetDnsAuthorizationDnsauthorizationname.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getdnsauthorization/SyncGetDnsAuthorizationDnsauthorizationname.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getdnsauthorization/SyncGetDnsAuthorizationDnsauthorizationname.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getdnsauthorization/SyncGetDnsAuthorizationString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getdnsauthorization/SyncGetDnsAuthorizationString.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getdnsauthorization/SyncGetDnsAuthorizationString.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getdnsauthorization/SyncGetDnsAuthorizationString.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getlocation/AsyncGetLocation.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getlocation/AsyncGetLocation.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getlocation/AsyncGetLocation.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getlocation/AsyncGetLocation.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getlocation/SyncGetLocation.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getlocation/SyncGetLocation.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getlocation/SyncGetLocation.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/getlocation/SyncGetLocation.java diff --git a/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/AsyncListCertificateIssuanceConfigs.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/AsyncListCertificateIssuanceConfigs.java new file mode 100644 index 000000000000..4e8bcc7f3ad5 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/AsyncListCertificateIssuanceConfigs.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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_listcertificateissuanceconfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest; +import com.google.cloud.certificatemanager.v1.LocationName; + +public class AsyncListCertificateIssuanceConfigs { + + public static void main(String[] args) throws Exception { + asyncListCertificateIssuanceConfigs(); + } + + public static void asyncListCertificateIssuanceConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + ListCertificateIssuanceConfigsRequest request = + ListCertificateIssuanceConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + certificateManagerClient + .listCertificateIssuanceConfigsPagedCallable() + .futureCall(request); + // Do something. + for (CertificateIssuanceConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_listcertificateissuanceconfigs_async] diff --git a/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/AsyncListCertificateIssuanceConfigsPaged.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/AsyncListCertificateIssuanceConfigsPaged.java new file mode 100644 index 000000000000..26c3d63d2c4d --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/AsyncListCertificateIssuanceConfigsPaged.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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_listcertificateissuanceconfigs_paged_async] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse; +import com.google.cloud.certificatemanager.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListCertificateIssuanceConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncListCertificateIssuanceConfigsPaged(); + } + + public static void asyncListCertificateIssuanceConfigsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + ListCertificateIssuanceConfigsRequest request = + ListCertificateIssuanceConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListCertificateIssuanceConfigsResponse response = + certificateManagerClient.listCertificateIssuanceConfigsCallable().call(request); + for (CertificateIssuanceConfig element : response.getCertificateIssuanceConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_listcertificateissuanceconfigs_paged_async] diff --git a/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/SyncListCertificateIssuanceConfigs.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/SyncListCertificateIssuanceConfigs.java new file mode 100644 index 000000000000..61257547be28 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/SyncListCertificateIssuanceConfigs.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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_listcertificateissuanceconfigs_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest; +import com.google.cloud.certificatemanager.v1.LocationName; + +public class SyncListCertificateIssuanceConfigs { + + public static void main(String[] args) throws Exception { + syncListCertificateIssuanceConfigs(); + } + + public static void syncListCertificateIssuanceConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + ListCertificateIssuanceConfigsRequest request = + ListCertificateIssuanceConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (CertificateIssuanceConfig element : + certificateManagerClient.listCertificateIssuanceConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_listcertificateissuanceconfigs_sync] diff --git a/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/SyncListCertificateIssuanceConfigsLocationname.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/SyncListCertificateIssuanceConfigsLocationname.java new file mode 100644 index 000000000000..b81b75f65d44 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/SyncListCertificateIssuanceConfigsLocationname.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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_listcertificateissuanceconfigs_locationname_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.LocationName; + +public class SyncListCertificateIssuanceConfigsLocationname { + + public static void main(String[] args) throws Exception { + syncListCertificateIssuanceConfigsLocationname(); + } + + public static void syncListCertificateIssuanceConfigsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (CertificateIssuanceConfig element : + certificateManagerClient.listCertificateIssuanceConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_listcertificateissuanceconfigs_locationname_sync] diff --git a/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/SyncListCertificateIssuanceConfigsString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/SyncListCertificateIssuanceConfigsString.java new file mode 100644 index 000000000000..b5cf66ee5c39 --- /dev/null +++ b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificateissuanceconfigs/SyncListCertificateIssuanceConfigsString.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.certificatemanager.v1.samples; + +// [START certificatemanager_v1_generated_certificatemanagerclient_listcertificateissuanceconfigs_string_sync] +import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig; +import com.google.cloud.certificatemanager.v1.CertificateManagerClient; +import com.google.cloud.certificatemanager.v1.LocationName; + +public class SyncListCertificateIssuanceConfigsString { + + public static void main(String[] args) throws Exception { + syncListCertificateIssuanceConfigsString(); + } + + public static void syncListCertificateIssuanceConfigsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CertificateManagerClient certificateManagerClient = CertificateManagerClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (CertificateIssuanceConfig element : + certificateManagerClient.listCertificateIssuanceConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END certificatemanager_v1_generated_certificatemanagerclient_listcertificateissuanceconfigs_string_sync] diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/AsyncListCertificateMapEntries.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/AsyncListCertificateMapEntries.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/AsyncListCertificateMapEntries.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/AsyncListCertificateMapEntries.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/AsyncListCertificateMapEntriesPaged.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/AsyncListCertificateMapEntriesPaged.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/AsyncListCertificateMapEntriesPaged.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/AsyncListCertificateMapEntriesPaged.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/SyncListCertificateMapEntries.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/SyncListCertificateMapEntries.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/SyncListCertificateMapEntries.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/SyncListCertificateMapEntries.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/SyncListCertificateMapEntriesCertificatemapname.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/SyncListCertificateMapEntriesCertificatemapname.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/SyncListCertificateMapEntriesCertificatemapname.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/SyncListCertificateMapEntriesCertificatemapname.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/SyncListCertificateMapEntriesString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/SyncListCertificateMapEntriesString.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/SyncListCertificateMapEntriesString.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemapentries/SyncListCertificateMapEntriesString.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/AsyncListCertificateMaps.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/AsyncListCertificateMaps.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/AsyncListCertificateMaps.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/AsyncListCertificateMaps.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/AsyncListCertificateMapsPaged.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/AsyncListCertificateMapsPaged.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/AsyncListCertificateMapsPaged.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/AsyncListCertificateMapsPaged.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/SyncListCertificateMaps.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/SyncListCertificateMaps.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/SyncListCertificateMaps.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/SyncListCertificateMaps.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/SyncListCertificateMapsLocationname.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/SyncListCertificateMapsLocationname.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/SyncListCertificateMapsLocationname.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/SyncListCertificateMapsLocationname.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/SyncListCertificateMapsString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/SyncListCertificateMapsString.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/SyncListCertificateMapsString.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificatemaps/SyncListCertificateMapsString.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/AsyncListCertificates.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/AsyncListCertificates.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/AsyncListCertificates.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/AsyncListCertificates.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/AsyncListCertificatesPaged.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/AsyncListCertificatesPaged.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/AsyncListCertificatesPaged.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/AsyncListCertificatesPaged.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/SyncListCertificates.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/SyncListCertificates.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/SyncListCertificates.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/SyncListCertificates.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/SyncListCertificatesLocationname.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/SyncListCertificatesLocationname.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/SyncListCertificatesLocationname.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/SyncListCertificatesLocationname.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/SyncListCertificatesString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/SyncListCertificatesString.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/SyncListCertificatesString.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listcertificates/SyncListCertificatesString.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/AsyncListDnsAuthorizations.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/AsyncListDnsAuthorizations.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/AsyncListDnsAuthorizations.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/AsyncListDnsAuthorizations.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/AsyncListDnsAuthorizationsPaged.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/AsyncListDnsAuthorizationsPaged.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/AsyncListDnsAuthorizationsPaged.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/AsyncListDnsAuthorizationsPaged.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/SyncListDnsAuthorizations.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/SyncListDnsAuthorizations.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/SyncListDnsAuthorizations.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/SyncListDnsAuthorizations.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/SyncListDnsAuthorizationsLocationname.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/SyncListDnsAuthorizationsLocationname.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/SyncListDnsAuthorizationsLocationname.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/SyncListDnsAuthorizationsLocationname.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/SyncListDnsAuthorizationsString.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/SyncListDnsAuthorizationsString.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/SyncListDnsAuthorizationsString.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listdnsauthorizations/SyncListDnsAuthorizationsString.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listlocations/AsyncListLocations.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listlocations/AsyncListLocations.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listlocations/AsyncListLocations.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listlocations/AsyncListLocations.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listlocations/AsyncListLocationsPaged.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listlocations/AsyncListLocationsPaged.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listlocations/AsyncListLocationsPaged.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listlocations/SyncListLocations.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listlocations/SyncListLocations.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listlocations/SyncListLocations.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/listlocations/SyncListLocations.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificate/AsyncUpdateCertificate.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificate/AsyncUpdateCertificate.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificate/AsyncUpdateCertificate.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificate/AsyncUpdateCertificate.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificate/AsyncUpdateCertificateLRO.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificate/AsyncUpdateCertificateLRO.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificate/AsyncUpdateCertificateLRO.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificate/AsyncUpdateCertificateLRO.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificate/SyncUpdateCertificate.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificate/SyncUpdateCertificate.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificate/SyncUpdateCertificate.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificate/SyncUpdateCertificate.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificate/SyncUpdateCertificateCertificateFieldmask.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemap/AsyncUpdateCertificateMap.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemap/AsyncUpdateCertificateMap.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemap/AsyncUpdateCertificateMap.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemap/AsyncUpdateCertificateMap.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemap/AsyncUpdateCertificateMapLRO.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemap/AsyncUpdateCertificateMapLRO.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemap/AsyncUpdateCertificateMapLRO.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemap/AsyncUpdateCertificateMapLRO.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemap/SyncUpdateCertificateMap.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemap/SyncUpdateCertificateMap.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemap/SyncUpdateCertificateMap.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemap/SyncUpdateCertificateMap.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemap/SyncUpdateCertificateMapCertificatemapFieldmask.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemap/SyncUpdateCertificateMapCertificatemapFieldmask.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemap/SyncUpdateCertificateMapCertificatemapFieldmask.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemap/SyncUpdateCertificateMapCertificatemapFieldmask.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemapentry/AsyncUpdateCertificateMapEntry.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemapentry/AsyncUpdateCertificateMapEntry.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemapentry/AsyncUpdateCertificateMapEntry.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemapentry/AsyncUpdateCertificateMapEntry.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemapentry/AsyncUpdateCertificateMapEntryLRO.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemapentry/AsyncUpdateCertificateMapEntryLRO.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemapentry/AsyncUpdateCertificateMapEntryLRO.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemapentry/AsyncUpdateCertificateMapEntryLRO.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemapentry/SyncUpdateCertificateMapEntry.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemapentry/SyncUpdateCertificateMapEntry.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemapentry/SyncUpdateCertificateMapEntry.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemapentry/SyncUpdateCertificateMapEntry.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemapentry/SyncUpdateCertificateMapEntryCertificatemapentryFieldmask.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemapentry/SyncUpdateCertificateMapEntryCertificatemapentryFieldmask.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemapentry/SyncUpdateCertificateMapEntryCertificatemapentryFieldmask.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatecertificatemapentry/SyncUpdateCertificateMapEntryCertificatemapentryFieldmask.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatednsauthorization/AsyncUpdateDnsAuthorization.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatednsauthorization/AsyncUpdateDnsAuthorization.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatednsauthorization/AsyncUpdateDnsAuthorization.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatednsauthorization/AsyncUpdateDnsAuthorization.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatednsauthorization/AsyncUpdateDnsAuthorizationLRO.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatednsauthorization/AsyncUpdateDnsAuthorizationLRO.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatednsauthorization/AsyncUpdateDnsAuthorizationLRO.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatednsauthorization/AsyncUpdateDnsAuthorizationLRO.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatednsauthorization/SyncUpdateDnsAuthorization.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatednsauthorization/SyncUpdateDnsAuthorization.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatednsauthorization/SyncUpdateDnsAuthorization.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatednsauthorization/SyncUpdateDnsAuthorization.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatednsauthorization/SyncUpdateDnsAuthorizationDnsauthorizationFieldmask.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatednsauthorization/SyncUpdateDnsAuthorizationDnsauthorizationFieldmask.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatednsauthorization/SyncUpdateDnsAuthorizationDnsauthorizationFieldmask.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagerclient/updatednsauthorization/SyncUpdateDnsAuthorizationDnsauthorizationFieldmask.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagersettings/getcertificate/SyncGetCertificate.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagersettings/getcertificate/SyncGetCertificate.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagersettings/getcertificate/SyncGetCertificate.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/certificatemanagersettings/getcertificate/SyncGetCertificate.java diff --git a/java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/stub/certificatemanagerstubsettings/getcertificate/SyncGetCertificate.java b/owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/stub/certificatemanagerstubsettings/getcertificate/SyncGetCertificate.java similarity index 100% rename from java-certificate-manager/samples/snippets/generated/com/google/cloud/certificatemanager/v1/stub/certificatemanagerstubsettings/getcertificate/SyncGetCertificate.java rename to owl-bot-staging/java-certificate-manager/v1/samples/snippets/generated/com/google/cloud/certificatemanager/v1/stub/certificatemanagerstubsettings/getcertificate/SyncGetCertificate.java